I have a component which I reuse in different parts of the app. In some cases, it is instantiated by different parent components.
I'm using the mdl lite framework from google and it uses the for attribute on a UL to determine how and when to display a drop down menu.
To facilitate this, I need to generate unique IDs for each instance of my component.
I have the view model generating an ID appropriately, but as soon as I put a variable into the for attribute, the attribute does not get rendered on the DOM.
<ul for="a">
<!--- for is rendered -->
</ul>
<ul for="a${instance}">
<!-- for is not rendered -->
</ul>
I have a component which I reuse in different parts of the app. In some cases, it is instantiated by different parent components.
I'm using the mdl lite framework from google and it uses the
for
attribute on a UL to determine how and when to display a drop down menu.To facilitate this, I need to generate unique IDs for each instance of my component. I have the view model generating an ID appropriately, but as soon as I put a variable into the
for
attribute, the attribute does not get rendered on the DOM.