In my Angular 2 Material application, I have a form that includes a price input:
<md-input [(ngModel)]="price" placeholder="Price">
</md-input>{{price|customCurrency}}
This input field uses a custom version of the CurrencyPipe which you can see in action on this Plnkr:
http://plnkr.co/edit/OM039CYEsS5CfhEuZdBN?p=preview
Instead of displaying the raw input value like this:
Price
100 $1.00
I would like to apply the customCurrency
pipe directly to the input field display value so it appears as follows:
Price
$1.00
Is there a way to achieve this where the pipe is applied to the display value as you type, or at least on blur?