Skip to content

Commit 5ee9630

Browse files
docs(CORE_DIRECTIVES): documentation update after renames
Closes angular#3791
1 parent c404410 commit 5ee9630

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/angular2/directives.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,32 @@ export * from './src/directives/ng_switch';
2727
* instead of writing:
2828
*
2929
* ```
30-
* import {If, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/angular2';
30+
* import {NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/angular2';
3131
* import {OtherDirective} from 'myDirectives';
3232
*
3333
* @Component({
3434
* selector: 'my-component'
3535
* })
3636
* @View({
3737
* templateUrl: 'myComponent.html',
38-
* directives: [If, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, OtherDirective]
38+
* directives: [NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, OtherDirective]
3939
* })
4040
* export class MyComponent {
4141
* ...
4242
* }
4343
* ```
44-
* one could enumerate all the core directives at once:
44+
* one could import all the core directives at once:
4545
*
4646
* ```
47-
* import {coreDirectives} from 'angular2/angular2';
47+
* import {CORE_DIRECTIVES} from 'angular2/angular2';
4848
* import {OtherDirective} from 'myDirectives';
4949
*
5050
* @Component({
5151
* selector: 'my-component'
5252
* })
5353
* @View({
5454
* templateUrl: 'myComponent.html',
55-
* directives: [coreDirectives, OtherDirective]
55+
* directives: [CORE_DIRECTIVES, OtherDirective]
5656
* })
5757
* export class MyComponent {
5858
* ...

0 commit comments

Comments
 (0)