I'm trying to code a component selector on attribute value like this:
selector: '[data-type=Type1]'
This works great in the following HTML:
<div *ngFor="let item of items">
<div data-type="Type1"></div>
</div>
But does not work like this (which is of course what I want):
<div *ngFor="let item of items">
<div [data-type]="item.type"></div>
</div>
I'm guessing it is due to the order in which Angular resolves things. Is what I want possible?