This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +14
-13
lines changed Expand file tree Collapse file tree 4 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 48
48
description: Dart version of Angular 2 example, Displaying Data
49
49
version: 0.0.1
50
50
dependencies:
51
- angular2: 2.0.0-alpha.28
51
+ angular2: 2.0.0-alpha.29
52
52
browser: ^0.10.0
53
53
transformers:
54
54
- angular2:
262
262
263
263
p.
264
264
Next, make FriendsService available to dependency injection
265
- by adding an <code >appInjector </code > parameter to DisplayComponent's
265
+ by adding a <code >viewInjector </code > parameter to DisplayComponent's
266
266
<code >@Component</code > annotation:
267
+ <!-- TODO: check with vsavkin: use viewInjector or hostInjector here? -->
267
268
268
269
code-example( language ="dart" ) .
269
- @Component(selector: 'display', <span class =" pnk" >appInjector : const [FriendsService]</span >)
270
+ @Component(selector: 'display', <span class =" pnk" >viewInjector : const [FriendsService]</span >)
270
271
271
272
.l-main-section
272
273
h2#Conditionally-displaying-data-with-NgIf Conditionally display data using *ng-if
300
301
import 'package:angular2/angular2.dart';
301
302
import 'package:displaying_data/friends_service.dart';
302
303
303
- @Component(selector: 'display', appInjector : const [FriendsService])
304
+ @Component(selector: 'display', viewInjector : const [FriendsService])
304
305
@View(template: '''
305
306
< p> My name: {{ myName }}< /p>
306
307
< p> Friends:< /p>
359
360
description: Displaying Data example
360
361
version: 0.0.1
361
362
dependencies:
362
- angular2: 2.0.0-alpha.28
363
+ angular2: 2.0.0-alpha.29
363
364
browser: ^0.10.0
364
365
transformers:
365
366
- angular2:
Original file line number Diff line number Diff line change 30
30
description: Getting Started example
31
31
version: 0.0.1
32
32
dependencies:
33
- angular2: 2.0.0-alpha.28
33
+ angular2: 2.0.0-alpha.29
34
34
browser: ^0.10.0
35
35
transformers:
36
36
- angular2:
Original file line number Diff line number Diff line change 197
197
description: User Input example
198
198
version: 0.0.1
199
199
dependencies:
200
- angular2: 2.0.0-alpha.28
200
+ angular2: 2.0.0-alpha.29
201
201
browser: ^0.10.0
202
202
transformers:
203
203
- angular2:
Original file line number Diff line number Diff line change 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.28 </b >.
41
+ <b >2.0.0-alpha.29 </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.28
47
+ angular2: 2.0.0-alpha.29
48
48
browser: ^0.10.0
49
49
transformers:
50
50
- angular2:
252
252
[Info from Dart2JS]:
253
253
Compiling hello_world|web/main.dart...
254
254
[Info from Dart2JS]:
255
- Took 0:00:17.408082 to compile hello_world|web/main.dart.
256
- Built 65 files to "build".
257
- //- REGENERATE THIS OUTPUT - or delete it? - when updating from 2.0.0-alpha.28
255
+ Took 0:00:16.908569 to compile hello_world|web/main.dart.
256
+ Built 75 files to "build".
257
+ //- REGENERATE THIS OUTPUT - or delete it? - when updating from 2.0.0-alpha.29
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.28
276
+ angular2: 2.0.0-alpha.29
277
277
browser: ^0.10.0
278
278
<span class =" pnk" >transformers:
279
279
- angular2:
You can’t perform that action at this time.
0 commit comments