Reputation: 14455
In the AngularJS docs it says (emphasis mine):
Directives with greater numerical priority are compiled first. Pre-link functions are also run in priority order, but post-link functions are run in reverse order. The order of directives with the same priority is undefined. The default priority is 0.
It looks like the inputDirective
has no priority set, and neither does my custom directive (which is also has a post-link function). Why does my custom directive get run first in the chain of $parsers
and $formatters
?
It wasn't this way before 1.2.0rc-3
, in fact I had to raise the priority of my custom directive to get its parsers and formatters to run before the inputDirective
.
Any insight?
Upvotes: 0
Views: 107