File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
modules/@angular/common/src/directives Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -65,10 +65,10 @@ import {isBlank, isPresent} from '../facade/lang';
65
65
*
66
66
* @stable
67
67
*/
68
- @Directive ( { selector : '[ngStyle]' , inputs : [ 'rawStyle: ngStyle' ] } )
68
+ @Directive ( { selector : '[ngStyle]' } )
69
69
export class NgStyle implements DoCheck {
70
70
/** @internal */
71
- _rawStyle : { [ key : string ] : string } ;
71
+ _ngStyle : { [ key : string ] : string } ;
72
72
/** @internal */
73
73
_differ : KeyValueDiffer ;
74
74
@@ -77,15 +77,15 @@ export class NgStyle implements DoCheck {
77
77
78
78
@Input ( )
79
79
set ngStyle ( v : { [ key : string ] : string } ) {
80
- this . _rawStyle = v ;
80
+ this . _ngStyle = v ;
81
81
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 ) ;
83
83
}
84
84
}
85
85
86
86
ngDoCheck ( ) {
87
87
if ( isPresent ( this . _differ ) ) {
88
- var changes = this . _differ . diff ( this . _rawStyle ) ;
88
+ var changes = this . _differ . diff ( this . _ngStyle ) ;
89
89
if ( isPresent ( changes ) ) {
90
90
this . _applyChanges ( changes ) ;
91
91
}
You can’t perform that action at this time.
0 commit comments