diff options
| author | Caitlin Potter | 2013-11-29 21:02:00 -0500 |
|---|---|---|
| committer | Igor Minar | 2013-12-04 23:26:56 -0800 |
| commit | 0e50810c53428f4c1f5bfdba9599df54cb7a6c6e (patch) | |
| tree | 27b61df21a84b03ed5485b401beaf9a69bdcce60 /src/ng/directive/ngInit.js | |
| parent | 21e48abbc1e75ace1b6b99c7b19f538d4e792068 (diff) | |
| download | angular.js-0e50810c53428f4c1f5bfdba9599df54cb7a6c6e.tar.bz2 | |
fix(ngInit): evaluate ngInit before ngInclude
The priority of ngInit is adjusted to occur before ngInclude, and after
ngController. This enables ngInit to initiallize values in a controller's
scope, and also to initiallize values before ngInclude executes.
Closes #5167
Closes #5208
Diffstat (limited to 'src/ng/directive/ngInit.js')
| -rw-r--r-- | src/ng/directive/ngInit.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ng/directive/ngInit.js b/src/ng/directive/ngInit.js index d3d0f3c1..934b31cc 100644 --- a/src/ng/directive/ngInit.js +++ b/src/ng/directive/ngInit.js @@ -16,6 +16,8 @@ * to initialize values on a scope. * </div> * + * @priority 450 + * * @element ANY * @param {expression} ngInit {@link guide/expression Expression} to eval. * @@ -47,6 +49,7 @@ </doc:example> */ var ngInitDirective = ngDirective({ + priority: 450, compile: function() { return { pre: function(scope, element, attrs) { |
