本文整理匯總了TypeScript中angular2/core.HostBinding函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript HostBinding函數的具體用法?TypeScript HostBinding怎麽用?TypeScript HostBinding使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了HostBinding函數的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: isOpen
@HostBinding('class.visible')
@HostBinding('class.transition')
public get isOpen():boolean {
if (this._service) {
return this._service.isOpen;
}
return;
}
示例2: isDisabled
@HostBinding('class.disabled')
@Input()
public get isDisabled():boolean {
return this._service.isDisabled;
}
示例3: isOpen
@HostBinding('class.visible')
@Input()
public get isOpen():boolean {
return this._service.isOpen;
}
示例4: showOverlay
@HostBinding('class.mui--overflow-hidden')
get showOverlay(){
return this.drawer.showOverlay;
}
示例5: hideDrawer
@HostBinding('class.hide-sidedrawer')
get hideDrawer(){
return this.drawer.hidden;
}
示例6: setState
@HostBinding('class.open') get setState() {
return this.modalShow.show;
}
示例7: login
@HostBinding('class.login-page') get login() { return this._location.path().indexOf('login') > -1 }
示例8: isCompleted
@HostBinding('class.done')
private get isCompleted() {
return this.todo.completed;
}