diff options
| author | Vojta Jina | 2012-02-28 14:43:37 -0800 | 
|---|---|---|
| committer | Vojta Jina | 2012-02-28 17:41:30 -0800 | 
| commit | d656d11489a0dbce0f549b20006052b215c4b500 (patch) | |
| tree | b64b201e9dea91cb6e201964525aae9c4d7308c7 /src | |
| parent | b37e8a2b141761d3211b52b8b6802c49c92d44f8 (diff) | |
| download | angular.js-d656d11489a0dbce0f549b20006052b215c4b500.tar.bz2 | |
feat(directive.style): Do not compile content of style element
Diffstat (limited to 'src')
| -rw-r--r-- | src/AngularPublic.js | 1 | ||||
| -rw-r--r-- | src/directives.js | 6 | 
2 files changed, 7 insertions, 0 deletions
| 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 +}); | 
