From b7af76b4c5aa77648cc1bfd49935b48583419023 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 11 Oct 2013 12:58:57 -0700 Subject: fix(directives): correct priority of structural directives BREAKING CHANGE: the priority of ngRepeat, ngSwitchWhen, ngIf, ngInclude and ngView has changed. This could affect directives that explicitly specify their priority. In order to make ngRepeat, ngSwitchWhen, ngIf, ngInclude and ngView work together in all common scenarios their directives are being adjusted to achieve the following precendence: Directive | Old Priority | New Priority ============================================= ngRepeat | 1000 | 1000 --------------------------------------------- ngSwitchWhen | 500 | 800 --------------------------------------------- ngIf | 1000 | 600 --------------------------------------------- ngInclude/ngView | 1000 | 400 --- src/ngRoute/directive/ngView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ngRoute') diff --git a/src/ngRoute/directive/ngView.js b/src/ngRoute/directive/ngView.js index 27357962..b031281d 100644 --- a/src/ngRoute/directive/ngView.js +++ b/src/ngRoute/directive/ngView.js @@ -176,7 +176,7 @@ function ngViewFactory( $route, $anchorScroll, $compile, $controller, return { restrict: 'ECA', terminal: true, - priority: 1000, + priority: 400, transclude: 'element', compile: function(element, attr, linker) { return function(scope, $element, attr) { -- cgit v1.2.3