Mahmud Adam Mahmud Adam - 10 months ago 51
Javascript Question

Directive Param Attributes in Vue 2.0

I understand that directive param attributes have been deprecated in Vue.js 2.0. So I can no longer do something such as

v-model="msg" number
inside of an
tag. How can get the same results without using the now deprecated param attributes?


Use modifiers:

<input v-model.number="msg">