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

Summary

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.

Goals

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

Setup

To install dependencies

npm install

bower install

To start application in live reload mode

grunt serve

Jshint

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

Labnoratory Academy Ltd (Realskill) is a Data Controller. Personal data will be processed to facilitate IT skill test. More
... Przewidywane kategorie odbiorców danych: pracownicy Bulldogjob oraz Labnoratory Academy Ltd. Podmiotowi danych przysługuje prawo do żądania dostępu do danych dotyczących swojej osoby, ich sprostowania, usunięcia, ograniczenia przetwarzania, do przenoszenia danych oraz wniesienia skargi do organu nadzorczego.
Go to the top and begin