Skip to content

Commit 6fdcf62

Browse files
committed
fix(AOT): Unmark Input fields as private
1 parent 484f470 commit 6fdcf62

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/lib/button/button.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import {MdRippleModule} from '@angular2-material/core';
2121
moduleId: module.id,
2222
selector: 'button[md-button], button[md-raised-button], button[md-icon-button], ' +
2323
'button[md-fab], button[md-mini-fab]',
24-
inputs: ['color'],
2524
host: {
2625
'[class.md-button-focus]': '_isKeyboardFocused',
2726
'(mousedown)': '_setMousedown()',
@@ -34,7 +33,7 @@ import {MdRippleModule} from '@angular2-material/core';
3433
changeDetection: ChangeDetectionStrategy.OnPush,
3534
})
3635
export class MdButton {
37-
private _color: string;
36+
_color: string;
3837

3938
/** Whether the button has focus from the keyboard (not the mouse). Used for class binding. */
4039
_isKeyboardFocused: boolean = false;
@@ -47,6 +46,7 @@ export class MdButton {
4746

4847
constructor(private _elementRef: ElementRef, private _renderer: Renderer) { }
4948

49+
@Input()
5050
get color(): string {
5151
return this._color;
5252
}

src/lib/sidenav/sidenav.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class MdSidenav {
5050
@Input() mode: 'over' | 'push' | 'side' = 'over';
5151

5252
/** Whether the sidenav is opened. */
53-
@Input('opened') @BooleanFieldValue() private _opened: boolean = false;
53+
@BooleanFieldValue() private _opened: boolean = false;
5454

5555
/** Event emitted when the sidenav is being opened. Use this to synchronize animations. */
5656
@Output('open-start') onOpenStart = new EventEmitter<void>();
@@ -75,6 +75,7 @@ export class MdSidenav {
7575
* Whether the sidenav is opened. We overload this because we trigger an event when it
7676
* starts or end.
7777
*/
78+
@Input()
7879
get opened(): boolean { return this._opened; }
7980
set opened(v: boolean) {
8081
this.toggle(v);

0 commit comments

Comments
 (0)