Jun 22, 2021
You can also implement it in the following way:
@Directive({ selector: '[applyColor]'})export default class ApplyColorDirective { @Input() @HostBinding('style.backgroundColor') applyColor: string;}
You can also implement it in the following way:
@Directive({ selector: '[applyColor]'})export default class ApplyColorDirective { @Input() @HostBinding('style.backgroundColor') applyColor: string;}