This works:
@HostBinding('style.width') get w() {
return this.width ? this.width : '';
}
@HostBinding('style.height') get h() {
return this.height ? this.height : '';
}
Is there a way to do this with a single @HostBinding
?
This works:
@HostBinding('style.width') get w() {
return this.width ? this.width : '';
}
@HostBinding('style.height') get h() {
return this.height ? this.height : '';
}
Is there a way to do this with a single @HostBinding
?