mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
parent
95e1b2d612
commit
1c045f1b46
1 changed files with 7 additions and 3 deletions
|
|
@ -6,10 +6,14 @@
|
|||
* @restrict E
|
||||
*
|
||||
* @description
|
||||
* Load content of a script tag, with type `text/ng-template`, into `$templateCache`, so that the
|
||||
* template can be used by `ngInclude`, `ngView` or directive templates.
|
||||
* Load the content of a `<script>` element into {@link api/ng.$templateCache `$templateCache`}, so that the
|
||||
* template can be used by {@link api/ng.directive:ngInclude `ngInclude`},
|
||||
* {@link api/ngRoute.directive:ngView `ngView`}, or {@link guide/directive directives}. The type of the
|
||||
* `<script>` element must be specified as `text/ng-template`, and a cache name for the template must be
|
||||
* assigned through the element's `id`, which can then be used as a directive's `templateUrl`.
|
||||
*
|
||||
* @param {'text/ng-template'} type must be set to `'text/ng-template'`
|
||||
* @param {'text/ng-template'} type Must be set to `'text/ng-template'`.
|
||||
* @param {string} id Cache name of the template.
|
||||
*
|
||||
* @example
|
||||
<doc:example>
|
||||
|
|
|
|||
Loading…
Reference in a new issue