diff --git a/src/ng/directive/ngInclude.js b/src/ng/directive/ngInclude.js index 0f1f245c..ccb26bab 100644 --- a/src/ng/directive/ngInclude.js +++ b/src/ng/directive/ngInclude.js @@ -153,6 +153,7 @@ var ngIncludeDirective = ['$http', '$templateCache', '$anchorScroll', '$compile' function($http, $templateCache, $anchorScroll, $compile, $animate, $sce) { return { restrict: 'ECA', + priority: 1000, terminal: true, transclude: 'element', compile: function(element, attr, transclusion) { diff --git a/test/ng/directive/ngIncludeSpec.js b/test/ng/directive/ngIncludeSpec.js index ffe6a998..b8b0c16b 100644 --- a/test/ng/directive/ngIncludeSpec.js +++ b/test/ng/directive/ngIncludeSpec.js @@ -286,6 +286,32 @@ describe('ngInclude', function() { })); + it('should not break attribute bindings on the same element', inject(function($compile, $rootScope, $httpBackend) { + // regression #3793 + + element = $compile('