fix(quickstart): create app.ts before running tsc --watch
This commit is contained in:
parent
2dda353497
commit
1f3940977c
|
@ -26,6 +26,13 @@
|
|||
<a href="https://github.com/angular/ts-quickstart"> <code>quickstart</code> GitHub repository</a>.
|
||||
This repository provides a faster start than building from <code>npm</code>.
|
||||
This repository includes the Angular distribution and type definitions for TypeScript.
|
||||
|
||||
p.
|
||||
Create two files, <code>index.html</code> and
|
||||
<code>app.ts</code>, both at the root of the project:
|
||||
|
||||
pre.prettyprint
|
||||
$ touch app.ts index.html
|
||||
|
||||
// STEP 2 - Start the TypeScript compiler ##########################
|
||||
.l-main-section
|
||||
|
@ -49,14 +56,6 @@
|
|||
.l-main-section
|
||||
h2#section-transpile 3. Import Angular
|
||||
|
||||
p.
|
||||
Create two files, <code>index.html</code> and
|
||||
<code>app.ts</code>, both at the root of the project:
|
||||
|
||||
pre.prettyprint
|
||||
$ touch index.html
|
||||
$ touch app.ts
|
||||
|
||||
p Inside of <code>app.ts</code>, import the type definitions from Angular:
|
||||
pre.prettyprint
|
||||
code /// <reference path="typings/angular2/angular2.d.ts" />
|
||||
|
|
Loading…
Reference in New Issue