1
- extends ../../ts/_cache /quickstart.jade
1
+ extends ../../ts/latest /quickstart.jade
2
2
3
3
block includes
4
4
include _util-fns
5
5
- var _Install = ' Get'
6
6
- var _prereq = ' the Dart SDK'
7
- - var _angular_browser_uri = ' package:angular2/platform/browser.dart'
8
- - var _angular_core_uri = ' package:angular2/core.dart'
7
+ - var _angular_browser_uri = ' angular2/platform/browser.dart'
8
+ - var _angular_core_uri = ' angular2/core.dart'
9
+ - var _stepInit = 3
10
+ - var _quickstartSrcURL= ' https://github.com/angular-examples/quickstart'
9
11
10
12
block setup-tooling
11
13
:marked
@@ -20,9 +22,6 @@ block setup-tooling
20
22
[DT]: https://www.dartlang.org/tools/
21
23
[pub]: https://www.dartlang.org/tools/pub/
22
24
23
- block download-source
24
- // exclude this section from Dart
25
-
26
25
block package-and-config-files
27
26
:marked
28
27
In the project folder just created, create a file named
@@ -59,9 +58,6 @@ block create-main
59
58
li a #[ b folder named #[ code web] ]
60
59
li a <b >file named #[code #[+adjExPath('app/main.ts')]]</b > with the following content:
61
60
62
- block index-html-commentary-for-ts
63
- //- N/A
64
-
65
61
block run-app
66
62
p.
67
63
We have a few options for running our app.
@@ -87,22 +83,23 @@ block build-app
87
83
in the [proper folders](#wrap-up),
88
84
and run `pub get`.
89
85
90
- .l-verbose-section
91
- h3#section-angular-run-app Building the app (generating JavaScript)
92
-
86
+ .l-verbose-section #section-angular-run-app
93
87
:marked
88
+ ### Building the app (generating JavaScript)
89
+
94
90
Before deploying the app, we need to generate JavaScript files.
95
91
The `pub build` command makes that easy.
96
92
97
93
code-example( language ="sh" ) .
98
94
> <span class =" blk" >pub build</span >
99
95
Loading source assets...
100
96
101
- p.
97
+ : marked
102
98
The generated JavaScript appears, along with supporting files,
103
- under a directory named < code > build</ code > .
99
+ under a directory named ` build` .
104
100
105
- h4#angular_transformer Using the Angular transformer
101
+ #angular_transformer
102
+ h4 Using the Angular transformer
106
103
107
104
p.
108
105
When generating JavaScript for an Angular app,
@@ -124,7 +121,7 @@ block build-app
124
121
<a href =" https://github.com/angular/angular/wiki/Angular-2-Dart-Transformer" >Angular
125
122
transformer wiki page</a >.
126
123
127
- #performance .l-sub-section
124
+ .l-sub-section #performance
128
125
h3 Performance, the transformer, and Angular 2 libraries
129
126
p.
130
127
When an app imports <code >bootstrap.dart</code >,
@@ -136,7 +133,8 @@ block build-app
136
133
(<code >entry_points</code > in <code >pubspec.yaml</code >)
137
134
so that they don't use mirrors.
138
135
139
- h4#dart_to_js_script_rewriter Using dart_to_js_script_rewriter
136
+ #dart_to_js_script_rewriter
137
+ h4 Using dart_to_js_script_rewriter
140
138
141
139
:marked
142
140
To improve the app's performance, convert the
@@ -203,6 +201,3 @@ block project-files
203
201
index.html,
204
202
pubspec.yaml,
205
203
styles.css` )
206
-
207
- block what-next-ts-overhead
208
- //- N/A
0 commit comments