File tree 4 files changed +15
-14
lines changed
4 files changed +15
-14
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.26
51
+ angular2: 2.0.0-alpha.28
52
52
browser: ^0.10.0
53
53
transformers:
54
54
- angular2:
227
227
p.
228
228
Make a <code >FriendsService</code > class to implement a model
229
229
containing a list of friends.
230
- Put this in a new file under <code >web /</code >
230
+ Put this in a new file under <code >lib /</code >
231
231
named <code >friends_service.dart</code >. Here's what the class looks like:
232
232
233
233
code-example( language ="dart" format ="linenums" ) .
234
- // web /friends_service.dart
234
+ // lib /friends_service.dart
235
235
library displaying_data.friends_service;
236
236
237
237
import 'package:angular2/angular2.dart';
248
248
Then set <code >friendNames</code > to the names provided by the service.
249
249
250
250
code-example( language ="dart" ) .
251
- // In web /show_properties.dart
251
+ // In lib /show_properties.dart
252
252
<span class =" pnk" >import 'package:displaying_data/friends_service.dart';</span >
253
253
...
254
254
class DisplayComponent {
359
359
description: Displaying Data example
360
360
version: 0.0.1
361
361
dependencies:
362
- angular2: 2.0.0-alpha.26
362
+ angular2: 2.0.0-alpha.28
363
363
browser: ^0.10.0
364
364
transformers:
365
365
- 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.26
33
+ angular2: 2.0.0-alpha.28
34
34
browser: ^0.10.0
35
35
transformers:
36
36
- angular2:
Original file line number Diff line number Diff line change 52
52
'Breathe',
53
53
'Learn Angular'
54
54
];
55
+
55
56
addTodo(String todo) {
56
57
todos.add(todo);
57
58
}
196
197
description: User Input example
197
198
version: 0.0.1
198
199
dependencies:
199
- angular2: 2.0.0-alpha.26
200
+ angular2: 2.0.0-alpha.28
200
201
browser: ^0.10.0
201
202
transformers:
202
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.26 </b >.
41
+ <b >2.0.0-alpha.28 </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.26
47
+ angular2: 2.0.0-alpha.28
48
48
browser: ^0.10.0
49
49
transformers:
50
50
- angular2:
248
248
Loading source assets...
249
249
Loading angular2 transformers...
250
250
INFO: Formatter is being overwritten.
251
- Building hello_world... (3.8s )
251
+ Building hello_world... (4.2s )
252
252
[Info from Dart2JS]:
253
253
Compiling hello_world|web/main.dart...
254
254
[Info from Dart2JS]:
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
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
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.26
276
+ angular2: 2.0.0-alpha.28
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