Managing application templates
As is to be expected with a single-page application, you will be managing a large number of templates in your application. AngularJS has several template management solutions baked into it, which offer a range of ways for your application to handle template delivery.
Getting ready
Suppose you are using the following template in your application:
<div class="btn-group"> #{{ player.number }} {{ player.name }} </div>
The content of the template is unimportant; it is merely to demonstrate that this template has HTML and uncompiled AngularJS content inside it.
Additionally, assume you have the following directive that is trying to use the preceding template:
(app.js) angular.module('myApp', []) .directive('playerBox', function() ...
Get AngularJS Web Application Development Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.