From 5f15363dab263950bacdd84c71a54ee6cebf150e Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Sun, 13 Sep 2015 18:00:48 +0200 Subject: [PATCH] feat(CORE_DIRECTIVES): add NgStyle to CORE_DIRECTIVES Fixes #4096 Closes #4161 --- modules/angular2/src/core/directives.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/angular2/src/core/directives.ts b/modules/angular2/src/core/directives.ts index 71faad8335..8264ecbbf2 100644 --- a/modules/angular2/src/core/directives.ts +++ b/modules/angular2/src/core/directives.ts @@ -9,6 +9,7 @@ import {NgClass} from './directives/ng_class'; import {NgFor} from './directives/ng_for'; import {NgIf} from './directives/ng_if'; import {NgNonBindable} from './directives/ng_non_bindable'; +import {NgStyle} from './directives/ng_style'; import {NgSwitch, NgSwitchWhen, NgSwitchDefault} from './directives/ng_switch'; export * from './directives/ng_class'; @@ -60,5 +61,5 @@ export * from './directives/ng_switch'; * ``` * */ -export const CORE_DIRECTIVES: Type[] = - CONST_EXPR([NgClass, NgFor, NgIf, NgNonBindable, NgSwitch, NgSwitchWhen, NgSwitchDefault]); +export const CORE_DIRECTIVES: Type[] = CONST_EXPR( + [NgClass, NgFor, NgIf, NgNonBindable, NgStyle, NgSwitch, NgSwitchWhen, NgSwitchDefault]);