File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Then, use it as follows:
27
27
Put inputmode numeric to mobile show only numbers
28
28
-->
29
29
<input inputmode =" numeric" onkeyup =" send(event)" value =" 0,00"
30
- oninput =" this.value = SimpleMaskMoney.format(this.value)" >
30
+ oninput =" this.value = SimpleMaskMoney.format(this.value)" >
31
31
32
32
<script src =" ./node_modules/simple-mask-money/lib/simple-mask-money.js" ></script >
33
33
<script >
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ import { Component, OnInit } from '@angular/core';
14
14
<!--
15
15
Put inputmode numeric to mobile show only numbers
16
16
-->
17
- <input #input inputmode="numeric" [(ngModel)]="val" (keyup)="send($event)" (input)="input.value=SimpleMaskMoney.format(val)"/>
17
+ <input #input inputmode="numeric" [(ngModel)]="val" (keyup)="send($event)"
18
+ (input)="input.value=SimpleMaskMoney.format(val)"/>
18
19
`
19
20
})
20
21
export class AppComponent implements OnInit {
Original file line number Diff line number Diff line change @@ -10,12 +10,15 @@ Then, use it as follows:
10
10
<!--
11
11
Put inputmode numeric to mobile show numeric keyboard
12
12
-->
13
- <input type =" text" inputmode =" numeric" v-model =" val" v-on:input =" val = SimpleMaskMoney.format(val)" v-on:keyup =" send($event)" >
13
+ <input type =" text" inputmode =" numeric" v-model =" val"
14
+ v-on:input =" val = SimpleMaskMoney.format(val)" v-on:keyup =" send($event)" >
14
15
</div >
15
16
</template >
16
17
17
18
<script >
18
- import { SimpleMaskMoney } from ' ../node_modules/simple-mask-money/lib/simple-mask-money' ; // import mask
19
+ import {
20
+ SimpleMaskMoney
21
+ } from ' ../node_modules/simple-mask-money/lib/simple-mask-money' ; // import mask
19
22
20
23
export default {
21
24
data () {
You can’t perform that action at this time.
0 commit comments