diff options
| -rw-r--r-- | src/ng/directive/ngInclude.js | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/src/ng/directive/ngInclude.js b/src/ng/directive/ngInclude.js index f6159813..6a656cb6 100644 --- a/src/ng/directive/ngInclude.js +++ b/src/ng/directive/ngInclude.js @@ -3,7 +3,7 @@  /**   * @ngdoc directive   * @name angular.module.ng.$compileProvider.directive.ng-include - * @restrict EA + * @restrict ECA   *   * @description   * Fetches, compiles and includes an external HTML fragment. @@ -74,7 +74,8 @@  var ngIncludeDirective = ['$http', '$templateCache', '$anchorScroll', '$compile',                    function($http,   $templateCache,   $anchorScroll,   $compile) {    return { -    restrict: 'EA', +    restrict: 'ECA', +    terminal: true,      compile: function(element, attr) {        var srcExp = attr.ngInclude || attr.src,            onloadExp = attr.onload || '', | 
