3 ms·
Is the use of of custom attributes a good practice? (example: <div v-text="message"></div>)? I thought the data-* attributes were the recommended way (https://
by opayen 13y ago
Is the use of of custom attributes a good practice? (example: <div v-text="message"></div>)?
I thought the data-* attributes were the recommended way (https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_data_attributes https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Usin...).
- EvanYou 13y agoVue.js removes all the directives during compilation, so your compiled markup would be completely clean. If you are still worried, you can change the prefix using `Vue.config({prefix: 'data-v'})`.
- thoughtpalette 13y agoI believe Angular supports older versions of IE by utilizing their attributes through data.