Consider this example:
<input type="text" v-model="value">
<span>Value is: {{ value }}</span>
What I want is to put a bidirectional transformation function that would present the value in the input field in one form, but keep it in the data in another form. The simplest example would be negating numeric values: if the user inputs 5, I'd like the data to actually receive −5. What would be the best way of accomplishing that in Vue.js 1.0?
5but is-5?