From 5ee9630be114325524a17eb9374142289e228499 Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Sat, 22 Aug 2015 17:44:00 +0200 Subject: [PATCH] docs(CORE_DIRECTIVES): documentation update after renames Closes #3791 --- modules/angular2/directives.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/angular2/directives.ts b/modules/angular2/directives.ts index 3665852673..9c970bd87e 100644 --- a/modules/angular2/directives.ts +++ b/modules/angular2/directives.ts @@ -27,7 +27,7 @@ export * from './src/directives/ng_switch'; * instead of writing: * * ``` - * import {If, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/angular2'; + * import {NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/angular2'; * import {OtherDirective} from 'myDirectives'; * * @Component({ @@ -35,16 +35,16 @@ export * from './src/directives/ng_switch'; * }) * @View({ * templateUrl: 'myComponent.html', - * directives: [If, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, OtherDirective] + * directives: [NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, OtherDirective] * }) * export class MyComponent { * ... * } * ``` - * one could enumerate all the core directives at once: + * one could import all the core directives at once: * * ``` - * import {coreDirectives} from 'angular2/angular2'; + * import {CORE_DIRECTIVES} from 'angular2/angular2'; * import {OtherDirective} from 'myDirectives'; * * @Component({ @@ -52,7 +52,7 @@ export * from './src/directives/ng_switch'; * }) * @View({ * templateUrl: 'myComponent.html', - * directives: [coreDirectives, OtherDirective] + * directives: [CORE_DIRECTIVES, OtherDirective] * }) * export class MyComponent { * ...