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/ng/directive/ngInclude.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ng/directive/ngInclude.js') diff --git a/src/ng/directive/ngInclude.js b/src/ng/directive/ngInclude.js index 450677e1..b2ebeda9 100644 --- a/src/ng/directive/ngInclude.js +++ b/src/ng/directive/ngInclude.js @@ -152,7 +152,7 @@ var ngIncludeDirective = ['$http', '$templateCache', '$anchorScroll', '$compile' function($http, $templateCache, $anchorScroll, $compile, $animate, $sce) { return { restrict: 'ECA', - priority: 1000, + priority: 400, terminal: true, transclude: 'element', compile: function(element, attr, transclusion) { -- cgit v1.2.3