fix(examples): prefix directives with Ng
This commit is contained in:
parent
cdbb2473bb
commit
0e82970a29
@ -1,4 +1,4 @@
|
|||||||
import {bootstrap, If, For, EventEmitter} from 'angular2/angular2';
|
import {bootstrap, NgIf, NgFor, EventEmitter} from 'angular2/angular2';
|
||||||
import {FormBuilder, Validators, formDirectives, ControlGroup} from 'angular2/forms';
|
import {FormBuilder, Validators, formDirectives, ControlGroup} from 'angular2/forms';
|
||||||
|
|
||||||
// TODO(radokirov): Once the application is transpiled by TS instead of Traceur,
|
// TODO(radokirov): Once the application is transpiled by TS instead of Traceur,
|
||||||
@ -42,7 +42,7 @@ import {View} from 'angular2/src/core/annotations_impl/view';
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
directives: [formDirectives, If]
|
directives: [formDirectives, NgIf]
|
||||||
})
|
})
|
||||||
class HeaderFields {
|
class HeaderFields {
|
||||||
header:ControlGroup;
|
header:ControlGroup;
|
||||||
@ -144,7 +144,7 @@ class SurveyQuestion {
|
|||||||
<button (click)="submitForm()">Submit</button>
|
<button (click)="submitForm()">Submit</button>
|
||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
directives: [formDirectives, For, HeaderFields, SurveyQuestion]
|
directives: [formDirectives, NgFor, HeaderFields, SurveyQuestion]
|
||||||
})
|
})
|
||||||
class SurveyBuilder {
|
class SurveyBuilder {
|
||||||
form:ControlGroup;
|
form:ControlGroup;
|
||||||
|
@ -74,7 +74,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
<p template="for #item of items">
|
<p template="ng-for #item of items">
|
||||||
Repeated button:
|
Repeated button:
|
||||||
<button md-button tabindex="-1" (^click)="increment()">{{action}}</button>
|
<button md-button tabindex="-1" (^click)="increment()">{{action}}</button>
|
||||||
{{clickCount}}
|
{{clickCount}}
|
||||||
|
@ -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 {MdButton, MdAnchor} from 'angular2_material/src/components/button/button'
|
||||||
import {UrlResolver} from 'angular2/src/services/url_resolver';
|
import {UrlResolver} from 'angular2/src/services/url_resolver';
|
||||||
import {commonDemoSetup, DemoUrlResolver} from '../demo_common';
|
import {commonDemoSetup, DemoUrlResolver} from '../demo_common';
|
||||||
@ -14,7 +14,7 @@ import {View} from 'angular2/src/core/annotations_impl/view';
|
|||||||
})
|
})
|
||||||
@View({
|
@View({
|
||||||
templateUrl: './demo_app.html',
|
templateUrl: './demo_app.html',
|
||||||
directives: [MdButton, MdAnchor, For]
|
directives: [MdButton, MdAnchor, NgFor]
|
||||||
})
|
})
|
||||||
class DemoApp {
|
class DemoApp {
|
||||||
previousClick: string;
|
previousClick: string;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {bootstrap, For} from 'angular2/angular2';
|
import {bootstrap, NgFor} from 'angular2/angular2';
|
||||||
import {Store, Todo, TodoFactory} from './services/TodoStore';
|
import {Store, Todo, TodoFactory} from './services/TodoStore';
|
||||||
import {reflector} from 'angular2/src/reflection/reflection';
|
import {reflector} from 'angular2/src/reflection/reflection';
|
||||||
import {ReflectionCapabilities} from 'angular2/src/reflection/reflection_capabilities';
|
import {ReflectionCapabilities} from 'angular2/src/reflection/reflection_capabilities';
|
||||||
@ -17,7 +17,7 @@ import {View} from 'angular2/src/core/annotations_impl/view';
|
|||||||
})
|
})
|
||||||
@View({
|
@View({
|
||||||
templateUrl: 'todo.html',
|
templateUrl: 'todo.html',
|
||||||
directives: [For]
|
directives: [NgFor]
|
||||||
})
|
})
|
||||||
class TodoApp {
|
class TodoApp {
|
||||||
todoStore: Store;
|
todoStore: Store;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user