<div data-value="{{tagName}}">{{tagName}}</div>
Getting "data-value is not a valid attribute" of div error.
By default Angular2 binds to properties for performance reasons. To explicitly bind to attributes use one of these options
attr.data-value="{{tagName}}"
or
[attr.data-value]="tagName"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With