File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import {MdRippleModule} from '@angular2-material/core';
21
21
moduleId : module . id ,
22
22
selector : 'button[md-button], button[md-raised-button], button[md-icon-button], ' +
23
23
'button[md-fab], button[md-mini-fab]' ,
24
- inputs : [ 'color' ] ,
25
24
host : {
26
25
'[class.md-button-focus]' : '_isKeyboardFocused' ,
27
26
'(mousedown)' : '_setMousedown()' ,
@@ -34,7 +33,7 @@ import {MdRippleModule} from '@angular2-material/core';
34
33
changeDetection : ChangeDetectionStrategy . OnPush ,
35
34
} )
36
35
export class MdButton {
37
- private _color : string ;
36
+ _color : string ;
38
37
39
38
/** Whether the button has focus from the keyboard (not the mouse). Used for class binding. */
40
39
_isKeyboardFocused : boolean = false ;
@@ -47,6 +46,7 @@ export class MdButton {
47
46
48
47
constructor ( private _elementRef : ElementRef , private _renderer : Renderer ) { }
49
48
49
+ @Input ( )
50
50
get color ( ) : string {
51
51
return this . _color ;
52
52
}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export class MdSidenav {
50
50
@Input ( ) mode : 'over' | 'push' | 'side' = 'over' ;
51
51
52
52
/** Whether the sidenav is opened. */
53
- @Input ( 'opened' ) @ BooleanFieldValue ( ) private _opened : boolean = false ;
53
+ @BooleanFieldValue ( ) private _opened : boolean = false ;
54
54
55
55
/** Event emitted when the sidenav is being opened. Use this to synchronize animations. */
56
56
@Output ( 'open-start' ) onOpenStart = new EventEmitter < void > ( ) ;
@@ -75,6 +75,7 @@ export class MdSidenav {
75
75
* Whether the sidenav is opened. We overload this because we trigger an event when it
76
76
* starts or end.
77
77
*/
78
+ @Input ( )
78
79
get opened ( ) : boolean { return this . _opened ; }
79
80
set opened ( v : boolean ) {
80
81
this . toggle ( v ) ;
You can’t perform that action at this time.
0 commit comments