I use this library for input mask.

have input

<input class="form-control" id="sum" v-on:click="inputValueFilterSum"> 

inputValueFilterSum function

 inputValueFilterSum: function(){ var num = $('#sum').maskMoney() }, 

And there is a local variable sum.

It is necessary at the end of input to input to set the values ​​in sum of input. I can not figure out how to do it

    1 answer 1

    You can do this:

      inputValueFilterSum: function () { var num = $("#sum").maskMoney() this.sum = num; } 

    Then the variable sum will be num. Later, it can be used somewhere in another block code:

     <div>SUM : {{sum}}</div>