AngularJS provides
$tempateCache module for caching templates.This module has
put() and
get() methods to save and retrieve HTML template from the cache.In this
Demo, "
We will create a simple directive which uses the template cache to load the template string",Below
code shows the use of template cache to load a template and used in the directive definition.<!DOCTYPE html>
<html ng-app="myApp">...
Published on October 10, 2014 09:26