|
38 | 38 | specify the angular2 and browser packages as dependencies,
|
39 | 39 | as well as the angular2 transformer.
|
40 | 40 | Angular 2 is changing rapidly, so provide an exact version:
|
41 |
| - <b>2.0.0-alpha.25</b>. |
| 41 | + <b>2.0.0-alpha.26</b>. |
42 | 42 |
|
43 | 43 | code-example(language="yaml" format="linenums").
|
44 | 44 | name: hello_world
|
45 | 45 | version: 0.0.1
|
46 | 46 | dependencies:
|
47 |
| - angular2: 2.0.0-alpha.25 |
48 |
| - browser: ^0.10.0+2 |
| 47 | + angular2: 2.0.0-alpha.26 |
| 48 | + browser: ^0.10.0 |
49 | 49 | transformers:
|
50 | 50 | - angular2:
|
51 | 51 | entry_points: web/main.dart
|
|
79 | 79 | code-example(language="dart" format="linenums").
|
80 | 80 | import 'package:angular2/angular2.dart';
|
81 | 81 | import 'package:angular2/src/reflection/reflection.dart' show reflector;
|
82 |
| - import 'package:angular2/src/reflection/reflection_capabilities.dart' show ReflectionCapabilities; |
83 |
| - |
| 82 | + import 'package:angular2/src/reflection/reflection_capabilities.dart' |
| 83 | + show ReflectionCapabilities; |
84 | 84 | //- STEP 3 - Define a component ##########################
|
85 | 85 | .l-main-section
|
86 | 86 |
|
|
90 | 90 | Update <code>web/main.dart</code>, adding the following code
|
91 | 91 | after the imports:
|
92 | 92 |
|
93 |
| - code-example(language="dart" format="linenums:5"). |
| 93 | + code-example(language="dart" format="linenums:6"). |
94 | 94 | @Component(
|
95 | 95 | selector: 'my-app'
|
96 | 96 | )
|
|
161 | 161 | p.
|
162 | 162 | Add the following code to the bottom of <code>web/main.dart</code>:
|
163 | 163 |
|
164 |
| - code-example(language="dart" format="linenums:15"). |
| 164 | + code-example(language="dart" format="linenums:16"). |
165 | 165 | main() {
|
166 | 166 | reflector.reflectionCapabilities = new ReflectionCapabilities();
|
167 | 167 | bootstrap(AppComponent);
|
|
245 | 245 |
|
246 | 246 | code-example(language="basic").
|
247 | 247 | > <span class="blk">pub build</span>
|
248 |
| - Loading source assets... |
249 |
| - Loading angular2 transformers... |
| 248 | + Loading source assets... |
| 249 | + Loading angular2 transformers... |
250 | 250 | INFO: Formatter is being overwritten.
|
251 |
| - Building hello_world... (3.1s) |
| 251 | + Building hello_world... (3.8s) |
252 | 252 | [Info from Dart2JS]:
|
253 | 253 | Compiling hello_world|web/main.dart...
|
254 | 254 | [Info from Dart2JS]:
|
255 |
| - Took 0:00:16.123086 to compile hello_world|web/main.dart. |
256 |
| - Built 41 files to "build". |
257 |
| - //- REGENERATE THIS OUTPUT - or delete it? - when updating from 2.0.0-alpha.25 |
| 255 | + Took 0:00:15.612746 to compile hello_world|web/main.dart. |
| 256 | + Built 63 files to "build". |
| 257 | + //- REGENERATE THIS OUTPUT - or delete it? - when updating from 2.0.0-alpha.26 |
258 | 258 |
|
259 | 259 | p.
|
260 | 260 | The generated JavaScript appears, along with supporting files,
|
|
273 | 273 | name: hello_world
|
274 | 274 | version: 0.0.1
|
275 | 275 | dependencies:
|
276 |
| - angular2: 2.0.0-alpha.25 |
277 |
| - browser: ^0.10.0+2 |
| 276 | + angular2: 2.0.0-alpha.26 |
| 277 | + browser: ^0.10.0 |
278 | 278 | <span class="pnk">transformers:
|
279 | 279 | - angular2:
|
280 | 280 | entry_points: web/main.dart</span>
|
|
0 commit comments