fix(quickstart): create app.ts before running tsc --watch
This commit is contained in:
parent
2dda353497
commit
1f3940977c
|
@ -27,6 +27,13 @@
|
||||||
This repository provides a faster start than building from <code>npm</code>.
|
This repository provides a faster start than building from <code>npm</code>.
|
||||||
This repository includes the Angular distribution and type definitions for TypeScript.
|
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 ##########################
|
// STEP 2 - Start the TypeScript compiler ##########################
|
||||||
.l-main-section
|
.l-main-section
|
||||||
h2#start-tsc 2. Run the TypeScript compiler
|
h2#start-tsc 2. Run the TypeScript compiler
|
||||||
|
@ -49,14 +56,6 @@
|
||||||
.l-main-section
|
.l-main-section
|
||||||
h2#section-transpile 3. Import Angular
|
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:
|
p Inside of <code>app.ts</code>, import the type definitions from Angular:
|
||||||
pre.prettyprint
|
pre.prettyprint
|
||||||
code /// <reference path="typings/angular2/angular2.d.ts" />
|
code /// <reference path="typings/angular2/angular2.d.ts" />
|
||||||
|
|
Loading…
Reference in New Issue