script (directive in module ng )

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.

Usage

as element (see IE restrictions)
<script
       type="text/ng-template">
</script>

Parameters

Example

Demo Source Code




  Load inlined template
  


Demo Source Code