docs(displaying-data): update Dart version to alpha.47
Per feedback on #195. closes #443
This commit is contained in:
parent
f82b730cbd
commit
0874f94520
|
@ -42,7 +42,7 @@
|
|||
description: Dart version of Angular 2 example, Displaying Data
|
||||
version: 0.0.1
|
||||
dependencies:
|
||||
angular2: 2.0.0-alpha.45
|
||||
angular2: 2.0.0-alpha.47
|
||||
browser: ^0.10.0
|
||||
transformers:
|
||||
- angular2:
|
||||
|
@ -262,11 +262,11 @@
|
|||
|
||||
p.
|
||||
Next, make FriendsService available to dependency injection
|
||||
by adding a <code>viewBindings</code> parameter to DisplayComponent's
|
||||
by adding a <code>viewProviders</code> parameter to DisplayComponent's
|
||||
<code>@Component</code> annotation:
|
||||
|
||||
code-example(language="dart").
|
||||
@Component(selector: 'display', <span class="pnk">viewBindings: const [FriendsService]</span>)
|
||||
@Component(selector: 'display', <span class="pnk">viewProviders: const [FriendsService]</span>)
|
||||
|
||||
.l-main-section
|
||||
h2#Conditionally-displaying-data-with-NgIf Conditionally display data using *ng-if
|
||||
|
@ -300,7 +300,7 @@
|
|||
import 'package:angular2/angular2.dart';
|
||||
import 'package:displaying_data/friends_service.dart';
|
||||
|
||||
@Component(selector: 'display', viewBindings: const [FriendsService])
|
||||
@Component(selector: 'display', viewProviders: const [FriendsService])
|
||||
@View(template: '''
|
||||
<p>My name: {{ myName }}</p>
|
||||
<p>Friends:</p>
|
||||
|
@ -353,7 +353,7 @@
|
|||
description: Displaying Data example
|
||||
version: 0.0.1
|
||||
dependencies:
|
||||
angular2: 2.0.0-alpha.45
|
||||
angular2: 2.0.0-alpha.47
|
||||
browser: ^0.10.0
|
||||
transformers:
|
||||
- angular2:
|
||||
|
|
Loading…
Reference in New Issue