Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Angular.js directives sorted by priority
/*
I've compiled a list of angular directives according to their priorities (from most priority to lesser priority).
Also, terminal property is included for each directive that asserts it
*/
ng-switch 1200
ng-repeat 1000 terminal
ng-if 600 terminal
ng-controller 500
ng-init 450
ng-include 400 terminal
ng-list 100
ng-value 100
select 100
disabled 100
checked 100
readonly 100
selected 100
open 100
ng-pattern 100
href 99
src 99
srcSet 99
ng-model 1
ng-options - terminal
script - terminal
@mikesigs

This comment has been minimized.

Copy link

commented Aug 7, 2015

Just what I was looking for. This should be in the Angular docs somewhere. Thank you!

@mikesigs

This comment has been minimized.

Copy link

commented Aug 7, 2015

Check out my fork. I updated the list with more directives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.