Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
feat(ngInclude): allow ngInclude on css class
Browse files Browse the repository at this point in the history
And make it terminal so that it does not compile its content, which would cause leaks.
  • Loading branch information
vojtajina committed Apr 3, 2012
1 parent 199ac26 commit 428f2b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ng/directive/ngInclude.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 || '',
Expand Down

0 comments on commit 428f2b5

Please sign in to comment.