diff options
| author | Peter Bacon Darwin | 2014-02-07 20:34:04 +0000 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 19:03:40 +0000 |
| commit | 1192ae44f1d7f944719520f235e9f2ec895bdfd5 (patch) | |
| tree | 4d4f06b9448731e2b34ddd2441a0a13dccfc8301 /src/ng/directive/script.js | |
| parent | f7c8bcb329eb77b153cd91fcf35c5874a6f9a4b3 (diff) | |
| download | angular.js-1192ae44f1d7f944719520f235e9f2ec895bdfd5.tar.bz2 | |
docs(bike-shed-migration): convert <doc:...> examples to <example>...
Diffstat (limited to 'src/ng/directive/script.js')
| -rw-r--r-- | src/ng/directive/script.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ng/directive/script.js b/src/ng/directive/script.js index 229f3542..84550568 100644 --- a/src/ng/directive/script.js +++ b/src/ng/directive/script.js @@ -16,22 +16,22 @@ * @param {string} id Cache name of the template. * * @example - <doc:example> - <doc:source> + <example> + <file name="index.html"> <script type="text/ng-template" id="/tpl.html"> Content of the template. </script> <a ng-click="currentTpl='/tpl.html'" id="tpl-link">Load inlined template</a> <div id="tpl-content" ng-include src="currentTpl"></div> - </doc:source> - <doc:protractor> + </file> + </file name="protractor.js" type="protractor"> it('should load template defined inside script tag', function() { element(by.css('#tpl-link')).click(); expect(element(by.css('#tpl-content')).getText()).toMatch(/Content of the template/); }); - </doc:protractor> - </doc:example> + </file> + </example> */ var scriptDirective = ['$templateCache', function($templateCache) { return { |
