I have the following Plunker that uses ui-router and Angular's 1.6x new component feature.
The state 'userRegister'
becomes active then initialises the 'userRegister'
component. This component injects a new <user-register/>
into the <ui-view>
then injects the HTML contents of the ng-template
script block, which is all working fine.
The final DOM ends up being:
<ui-view class="ng-scope">
<user-register class="ng-scope ng-isolate-scope">
<h1 class="header">Create account</h1>
</user-register>
</ui-view>
However, I cannot find a way to add a CSS class selector to the <user-register/>
tag.
e.g. using a class selector called .example
I'd like to achieve the following:
<user-register class="example ng-scope ng-isolate-scope">...<user-register/>
Any ideas please?