I made a directive for a two-way binded input, on the event onKeyPress I give it the columbian format. e.g. I input:
1000.25
And the directive change it to:
1.000,25
Now, before binding the value to my model I want to remove the given format, my questions are:
- Is there a way I can fire an event in the input directive when is being submitted (by a submit button)?
- And if it is possible, how? I really couldn't find anything alike, thanks in advance.
on the event onKeyPresswhat do you mean there? are you changing the model? - Sharikov Vladislav