From 94dc632a6d17a4bf6cbf17ff398397198a727ab5 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Mon, 11 Jul 2016 15:09:04 -0700 Subject: [PATCH] fix(NgStyle): remove duplicate input declaration (#9978) fixes #9977 --- modules/@angular/common/src/directives/ng_style.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/@angular/common/src/directives/ng_style.ts b/modules/@angular/common/src/directives/ng_style.ts index ef2096c02e..ac3fc21afa 100644 --- a/modules/@angular/common/src/directives/ng_style.ts +++ b/modules/@angular/common/src/directives/ng_style.ts @@ -65,10 +65,10 @@ import {isBlank, isPresent} from '../facade/lang'; * * @stable */ -@Directive({selector: '[ngStyle]', inputs: ['rawStyle: ngStyle']}) +@Directive({selector: '[ngStyle]'}) export class NgStyle implements DoCheck { /** @internal */ - _rawStyle: {[key: string]: string}; + _ngStyle: {[key: string]: string}; /** @internal */ _differ: KeyValueDiffer; @@ -77,15 +77,15 @@ export class NgStyle implements DoCheck { @Input() set ngStyle(v: {[key: string]: string}) { - this._rawStyle = v; + this._ngStyle = v; if (isBlank(this._differ) && isPresent(v)) { - this._differ = this._differs.find(this._rawStyle).create(null); + this._differ = this._differs.find(this._ngStyle).create(null); } } ngDoCheck() { if (isPresent(this._differ)) { - var changes = this._differ.diff(this._rawStyle); + var changes = this._differ.diff(this._ngStyle); if (isPresent(changes)) { this._applyChanges(changes); }