Skip to content

Commit 26677af

Browse files
committed
fix(AOT): Unmark Input fields as private
1 parent 833368f commit 26677af

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/lib/button/button.ts

Lines changed: 1 addition & 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+
@Input('color') _color: string;
3837

3938
/** Whether the button has focus from the keyboard (not the mouse). Used for class binding. */
4039
_isKeyboardFocused: boolean = false;

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)