Comment by opayen
12 years 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/Usin...).
12 years 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/Usin...).
Vue.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'})`.
I believe Angular supports older versions of IE by utilizing their attributes through data.