Skip to content

Commit 5f15363

Browse files
feat(CORE_DIRECTIVES): add NgStyle to CORE_DIRECTIVES
Fixes angular#4096 Closes angular#4161
1 parent a15b679 commit 5f15363

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/angular2/src/core/directives.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {NgClass} from './directives/ng_class';
99
import {NgFor} from './directives/ng_for';
1010
import {NgIf} from './directives/ng_if';
1111
import {NgNonBindable} from './directives/ng_non_bindable';
12+
import {NgStyle} from './directives/ng_style';
1213
import {NgSwitch, NgSwitchWhen, NgSwitchDefault} from './directives/ng_switch';
1314

1415
export * from './directives/ng_class';
@@ -60,5 +61,5 @@ export * from './directives/ng_switch';
6061
* ```
6162
*
6263
*/
63-
export const CORE_DIRECTIVES: Type[] =
64-
CONST_EXPR([NgClass, NgFor, NgIf, NgNonBindable, NgSwitch, NgSwitchWhen, NgSwitchDefault]);
64+
export const CORE_DIRECTIVES: Type[] = CONST_EXPR(
65+
[NgClass, NgFor, NgIf, NgNonBindable, NgStyle, NgSwitch, NgSwitchWhen, NgSwitchDefault]);

0 commit comments

Comments
 (0)