From 9827bc7466ee5fc27805fb2fbb0f1a39666d7596 Mon Sep 17 00:00:00 2001 From: Jeff Cross Date: Tue, 19 May 2015 12:21:59 -0700 Subject: [PATCH] fix(guide): remove directives that aren't yet used from displaying-data --- public/docs/js/latest/guide/displaying-data.jade | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/public/docs/js/latest/guide/displaying-data.jade b/public/docs/js/latest/guide/displaying-data.jade index 90ceffdc4b..a6b0fdec2f 100644 --- a/public/docs/js/latest/guide/displaying-data.jade +++ b/public/docs/js/latest/guide/displaying-data.jade @@ -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> - `, - 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>' }) ];