fix(examples): prefix directives with Ng

This commit is contained in:
Victor Berchet
2015-05-13 10:43:00 +02:00
parent cdbb2473bb
commit 0e82970a29
4 changed files with 8 additions and 8 deletions

View File

@ -74,7 +74,7 @@
</section>
<p template="for #item of items">
<p template="ng-for #item of items">
Repeated button:
<button md-button tabindex="-1" (^click)="increment()">{{action}}</button>
{{clickCount}}

View File

@ -1,4 +1,4 @@
import {bootstrap, MapWrapper, ListWrapper, For} from 'angular2/angular2';
import {bootstrap, MapWrapper, ListWrapper, NgFor} from 'angular2/angular2';
import {MdButton, MdAnchor} from 'angular2_material/src/components/button/button'
import {UrlResolver} from 'angular2/src/services/url_resolver';
import {commonDemoSetup, DemoUrlResolver} from '../demo_common';
@ -14,7 +14,7 @@ import {View} from 'angular2/src/core/annotations_impl/view';
})
@View({
templateUrl: './demo_app.html',
directives: [MdButton, MdAnchor, For]
directives: [MdButton, MdAnchor, NgFor]
})
class DemoApp {
previousClick: string;