SamVerschueren / angular2-polyfill

Angular2 polyfill for Angular1
MIT License
29 stars 3 forks source link

Camelcase host property bindings #21

Closed SamVerschueren closed 8 years ago

SamVerschueren commented 8 years ago

It's possible to set the background-color of a directive.

@Directive({
     '[style.backgroundColor]': '"green"'
})
export class BackgroundColorDirective {

}

This is not 100% correct though, it should be style.background-color. We should camelcase the properties.