本文整理汇总了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;
}