-
Book Overview & Buying
-
Table Of Contents
AngularJS Directives Cookbook
By :
As we already know, AngularJS is designed to be fully testable. Its engineers built the framework in such a way that it is possible to test everything: controllers, services, and of course, custom directives.
In this chapter, we will follow some recipes to make your job easier when it is necessary to test your own directives.
At first glance, it may seem difficult to test custom directives, but actually there are some steps we can take to facilitate this.
Some tools help us in this task, among them there is one in particular that makes it even easier.
It is a very popular IDE among JavaScript developers, known as WebStorm.
We will show you how to configure the IDE and use the Karma Test Runner, but you can follow the next examples using the same editor that was used on the previous examples.
You can download the trial version at: https://www.jetbrains.com/webstorm/.
Change the font size
Change margin width
Change background colour