This will set the dashCase class on the button to true or false depending upon the value of binding.
<button [class.dash-case]="binding"></button>
I know dash-case to camelCase conversion is actually a "feature" built into the attribute parser, but it should have exceptions in cases like this.
The last thing I would expect is for angular to camel my classNames.
This will set the
dashCaseclass on the button to true or false depending upon the value ofbinding.I know dash-case to camelCase conversion is actually a "feature" built into the attribute parser, but it should have exceptions in cases like this.
The last thing I would expect is for angular to camel my classNames.