From d656d11489a0dbce0f549b20006052b215c4b500 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Tue, 28 Feb 2012 14:43:37 -0800 Subject: feat(directive.style): Do not compile content of style element --- src/AngularPublic.js | 1 + src/directives.js | 6 ++++++ 2 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/AngularPublic.js b/src/AngularPublic.js index a317d4dd..d1ae4a18 100644 --- a/src/AngularPublic.js +++ b/src/AngularPublic.js @@ -71,6 +71,7 @@ function publishExternalAPI(angular){ form: ngFormDirective, script: scriptTemplateLoader, select: selectDirective, + style: styleDirective, option: optionDirective, ngBind: ngBindDirective, ngBindHtml: ngBindHtmlDirective, diff --git a/src/directives.js b/src/directives.js index 8a2af704..2d42d3ef 100644 --- a/src/directives.js +++ b/src/directives.js @@ -969,3 +969,9 @@ var ngTranscludeDirective = valueFn({ }); }] }); + + +var styleDirective = valueFn({ + restrict: 'E', + terminal: true +}); -- cgit v1.2.3