Skip to content

Commit 94dc632

Browse files
authored
fix(NgStyle): remove duplicate input declaration (#9978)
fixes #9977
1 parent 2923187 commit 94dc632

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/@angular/common/src/directives/ng_style.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ import {isBlank, isPresent} from '../facade/lang';
6565
*
6666
* @stable
6767
*/
68-
@Directive({selector: '[ngStyle]', inputs: ['rawStyle: ngStyle']})
68+
@Directive({selector: '[ngStyle]'})
6969
export class NgStyle implements DoCheck {
7070
/** @internal */
71-
_rawStyle: {[key: string]: string};
71+
_ngStyle: {[key: string]: string};
7272
/** @internal */
7373
_differ: KeyValueDiffer;
7474

@@ -77,15 +77,15 @@ export class NgStyle implements DoCheck {
7777

7878
@Input()
7979
set ngStyle(v: {[key: string]: string}) {
80-
this._rawStyle = v;
80+
this._ngStyle = v;
8181
if (isBlank(this._differ) && isPresent(v)) {
82-
this._differ = this._differs.find(this._rawStyle).create(null);
82+
this._differ = this._differs.find(this._ngStyle).create(null);
8383
}
8484
}
8585

8686
ngDoCheck() {
8787
if (isPresent(this._differ)) {
88-
var changes = this._differ.diff(this._rawStyle);
88+
var changes = this._differ.diff(this._ngStyle);
8989
if (isPresent(changes)) {
9090
this._applyChanges(changes);
9191
}

0 commit comments

Comments
 (0)