Closed SamVerschueren closed 8 years ago
It's possible to set the background-color of a directive.
background-color
@Directive({ '[style.backgroundColor]': '"green"' }) export class BackgroundColorDirective { }
This is not 100% correct though, it should be style.background-color. We should camelcase the properties.
style.background-color
camelcase
It's possible to set the
background-color
of a directive.This is not 100% correct though, it should be
style.background-color
. We shouldcamelcase
the properties.