angularjs - Track value change in dropdowns across across application using a directive -
there requirement track value alter in dropdown throughout application the existing dropdown value changed.
working on angular.js , provides ng-change
same.
but ng-change
has called <select>
in html , if there specific functionality has taken care particular dropdowns can called in ng-change
. want write directive gets called value changed.
is possible? , how create sure directive gets called before ng-change
?
thanks, arun
take directives priority
.
angular $compile
when there multiple directives defined on single dom element, necessary specify order in directives applied. priority used sort directives before compile functions called. priority defined number. directives greater numerical priority compiled first. pre-link functions run in priority order, post-link functions run in reverse order. order of directives same priority undefined. default priority 0.
angularjs
No comments:
Post a Comment