Mastering Web Application

(Rick Simeone) #1

Packaging and Deploying AngularJS Web Applications


AngularJS is smart enough to cache (in the $templateCache service) all the partials it
has requested. Simply put, AngularJS will check the content of the $templateCache
service before fetching a template over the network. As a result it will never request
the same partial twice over the network. By priming the $templateCache service we
can make sure that all the partials are ready upon the application's startup and are
never downloaded over the network.


Using the