Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Few questions about directives
Message
 
 
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01615790
Message ID:
01615878
Views:
45
>I thought I'd posted something after this but anyway:
>
>I tested using both positive and negative priority and your directive always ran first. I *did* get it to work by changing your formatter to:
>                    function bind() {
>                        return ngModel.$formatters.unshift(function (value) {
>                            return format(value);
>                        });
>                    }
Don't know why the priority approach didn't work but this shows that your formatter needs to be first in the $formatters array.....

Wow, thanks for the clever solution, Viv. Seems like that error is gone although I'll do more tests.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform