fix(guide): remove directives that aren't yet used from displaying-data

This commit is contained in:
Jeff Cross 2015-05-19 12:21:59 -07:00
parent cb615382b5
commit 9827bc7466
1 changed files with 3 additions and 6 deletions

View File

@ -42,7 +42,7 @@
code-tabs
code-pane(language="javascript" name="TypeScript" format="linenums" escape="html").
// TypeScript
import {Component, View, bootstrap, For} from 'angular2/angular2';
import {Component, View, bootstrap} from 'angular2/angular2';
@Component({
selector: 'display'
@ -50,12 +50,10 @@
@View({
template: `
<p>My name: {{ myName }}</p&gt
`,
directives: [For]
`
})
class DisplayComponent {
myName: string;
names: Array<string>;
constructor() {
this.myName = "Alice";
@ -72,8 +70,7 @@
}),
new angular.ViewAnnotation({
template:
'<p>My name: {{ myName }}</p>',
directives: [angular.For, angular.If]
'<p>My name: {{ myName }}</p>'
})
];