script
(directive in module ng
)
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.
This directive can be used as custom element, but we aware of IE restrictions.
as element:<script type="text/ng-template"> </script>
type – {'text/ng-template'} –
must be set to 'text/ng-template'