diff options
| author | Vojta Jina | 2012-03-30 13:55:33 -0700 | 
|---|---|---|
| committer | Vojta Jina | 2012-04-03 10:10:44 -0700 | 
| commit | 428f2b563663315df4f235ca19cef4bdcf82e2ab (patch) | |
| tree | 0e9d60777ced649d8fcf3357ac8456c029b99ec5 /src/ng/directive/ngInclude.js | |
| parent | 199ac269869a57bb63d60c9b3f510d546bf0c9b2 (diff) | |
| download | angular.js-428f2b563663315df4f235ca19cef4bdcf82e2ab.tar.bz2 | |
feat(ngInclude): allow ngInclude on css class
And make it terminal so that it does not compile its content, which would cause leaks.
Diffstat (limited to 'src/ng/directive/ngInclude.js')
| -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 || '', | 
