Our site uses cookies. Learn more about their purpose and change of settings in a browser If you are using the site, you give you consent to use cookies, according to current browser settings. Got it

Angular egghead 23 - templateCache

  • Language JavaScript
In the application, the same data can be displayed in several different method, depending on the given method is changed template in directive.

Exercise 23 : TemplateCache


This application can render the same data in several different ways. The displayed templates are changed based on user interaction. Use template cache to improve the user experience.


Utilise templateCache to store templates and render them in the directive. You start with two keywords: button, table - they represent coresponding templates:

  • button - displays when button is entered
  • table - displays when table is entered
  • default - displays in any other case

Before you start, please refer to


To install dependencies

npm install

bower install

To start application in live reload mode

grunt serve


To run jshint:

grunt jshint:default

Run tests

To run e2e tests in development mode:

grunt test:e2e

To run jshint, tests and coverage:

npm test

Good luck!

Start this test

I agree to subscription in accordance with the terms of service.
Go to the top and begin