3 ms·
I like how custom attributes look better, when I saw how Angular was using them. You can use the data-prefix though if you want by including the following met
by carsongross 10y ago
I like how custom attributes look better, when I saw how Angular was using them.
You can use the data-prefix though if you want by including the following meta tag:
<meta name="intercoolerjs:use-data-prefix" content="true"/>
- whostolemyhat 10y agoI know it's largely hypothetical, but by not using data-, aren't you running the risk of namespace collisions in future? data- attributes are guaranteed not to ever have an 'official' version that the browser expects, while anything else may exist in the future.