Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71529

Ion-input with ngModel and pipe

$
0
0

@carlosadrian wrote:

I would like to know which is the best approach to get a formated ion-input with ngModel. I want something like this:

<ion-input [(ngModel)]="quantity | percentage"></ion-input>

Of course it does not work, but I think it shows what I want: the user see, e.g 10%, and if he writes 5 the ngModel bind to quantity the value 0.05.

And same happens with currency or other pipes... what is the best approach for it?

Thank you

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 71529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>