Skip to content

Commit fb5abcd

Browse files
committed
Use public property for dynamic height binding.
1 parent a4675e6 commit fb5abcd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/lib/tabs/tab-group.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ export class MdTabChangeEvent {
4848
selector: 'md-tab-group',
4949
templateUrl: 'tab-group.html',
5050
styleUrls: ['tab-group.css'],
51-
host: {
52-
'[class.md-tab-group-dynamic-height]': '_dynamicHeight'
53-
}
51+
host: { '[class.md-tab-group-dynamic-height]': 'dynamicHeight' }
5452
})
5553
export class MdTabGroup {
5654
@ContentChildren(MdTab) _tabs: QueryList<MdTab>;
@@ -68,9 +66,9 @@ export class MdTabGroup {
6866

6967
/** Whether the tab group should grow to the size of the active tab */
7068
private _dynamicHeight: boolean = false;
71-
@Input() set dynamicHeight(value: boolean) {
72-
this._dynamicHeight = coerceBooleanProperty(value);
73-
}
69+
@Input()
70+
get dynamicHeight(): boolean { return this._dynamicHeight; }
71+
set dynamicHeight(value: boolean) { this._dynamicHeight = coerceBooleanProperty(value); }
7472

7573
/** @deprecated */
7674
@Input('md-dynamic-height')

0 commit comments

Comments
 (0)