I am using angular's ui.mask from ui.utils 
<http://angular-ui.github.io/ui-utils/#/mask> to prevent users from typing 
anything but HH:mm in an input

My model has a date in ISO format, therefore I have to process it before 
displaying it in my input...

The problem is that ui-mask directive gets executed before my custom 
directive to parse the iso date to HH:mm...

I tried setting my directive's priority higher than ui.utils's but that did 
not work.

If you check the plunkr (link below), the first input has the ui-mask 
directive and that runs before my custom directive, therefore it returns an 
INVALID date, but the mask feature works...

If we remove the ui-mask from it (second input example), the time displays 
correctly, however I dont have the mask feature working from ui.utils...

I need to make both work together, mine running before the ui.mask 
directives..

Anyone has any idea on how to make this happen?

Link to the Plunkr <http://plnkr.co/edit/MnNuPJdPBaTBDQNY9FyK?p=preview>

Tks and I really appreciate any help here..

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to