Reputation: 1437
Every angularjs directive has a priority, which defines the order at which the directive is compiled when it co-exists with other directives on the same element. (See here for details)
However, I was searching for a list/reference of all ng directives (i.e. directives in the default ng module), sorted by their respective priorities. I found nothing in the angular docs. Can someone provide such a list, or a link to such a list?
Upvotes: 0
Views: 96
Reputation: 6256
A quick look on the latest code (1.3):
ngSwitch
, ngSwitchWhen
, ngSwitchDefault
ngNonBindable
, ngRepeat
ngIf
ngController
ngInit
ngInclude
ngList
, ngValue
, option
, ngMinlength
, ngMaxlength
, ngMin
, ngMax
, ngPattern
ngHref
, ngSrc
, ngSrcset
ngModel
, select
But, in most cases, you don't need to bother with these, as long as you remember that ngIf
and ngRepeat
are high up there.
Upvotes: 1