Skip to content

Instantly share code, notes, and snippets.

@wengole
Forked from mikesigs/angular-directive-priority.md
Last active August 29, 2015 14:26
Show Gist options
  • Save wengole/210e6e8aaabb0adfb72f to your computer and use it in GitHub Desktop.
Save wengole/210e6e8aaabb0adfb72f to your computer and use it in GitHub Desktop.
Angular.js directives sorted by priority
Directive Priority Terminal Creates new scope Can be used as multiElement
ngSwitch 1200 X
ngNonBindable 1000 X
ngRepeat 1000 X X X
ngIf 600 X X X
ngController 500 X
ngInit 450
ngInclude 400 X X
ngView 400 X
ngChecked 100
ngDisabled 100
ngOpen 100
ngReadonly 100
ngSelected 100
ngHref 99
ngSrc 99
ngSrcset 99
ngModel 1
a 0
form 0
input 0
ngApp 0
ngBind 0
ngBindHtml 0
ngBindTemplate 0
ngBlur 0
ngChange 0
ngClass 0
ngClassEven 0
ngClassOdd 0
ngClick 0
ngCloak 0
ngCopy 0
ngCsp 0
ngCut 0
ngDblclick 0
ngFocus 0
ngForm 0
ngHide 0 X
ngJq 0
ngKeydown 0
ngKeypress 0
ngKeyup 0
ngList 0
ngMessages 0 X
ngModelOptions 0
ngMousedown 0
ngMouseenter 0
ngMouseleave 0
ngMousemove 0
ngMouseover 0
ngMouseup 0
ngOptions 0 X
ngPaste 0
ngPluralize 0
ngShow 0 X
ngStyle 0
ngSubmit 0
ngTransclude 0
ngValue 0
script 0 X
select 0
textarea 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment