Skip to content

Commit e58b383

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

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/lib/button/button.ts

Lines changed: 2 additions & 3 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,7 +46,7 @@ export class MdButton {
4746

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

50-
get color(): string {
49+
@Input() get color(): string {
5150
return this._color;
5251
}
5352

src/lib/core/portal/portal-directives.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class TemplatePortalDirective extends TemplatePortal {
4343
})
4444
export class PortalHostDirective extends BasePortalHost {
4545
/** The attached portal. */
46-
private _portal: Portal<any>;
46+
_portal: Portal<any>;
4747

4848
constructor(
4949
private _componentFactoryResolver: ComponentFactoryResolver,

src/lib/sidenav/sidenav.ts

Lines changed: 1 addition & 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+
@Input('opened') @BooleanFieldValue() _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>();

0 commit comments

Comments
 (0)