Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Few questions about directives
Message
 
 
À
26/02/2015 07:58:40
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01615790
Message ID:
01616966
Vues:
43
>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.....

There is some activity in the issue I raised

https://github.com/angular/angular.js/issues/11157#issuecomment-75706528

and I also posted a new plnkr

http://plnkr.co/edit/z1BWMoPmnsCZlAUra0os?p=preview
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform