-
Book Overview & Buying
-
Table Of Contents
AngularJS Directives Cookbook
By :
When we use a tool for the solution of a specific problem, it is very common to worry about the best practices of the market for utilization of such a tool.
It happens frequently, and AngularJS is no different. Due to the large amount of tools, generators, and boilerplates, there is a common lookout on what best fits our application. Depending on the choice, this can become a nightmare in the long run, and your code will become a mess.
Since the goal of this book is not to discuss the best practices for development with AngularJS, we will stick to best practices for Directives AngularJS and this particular generator.
We will use the code generated in the previous recipe to identify some relevant points for the implementation of directives.
In your favorite editor, open the application we just created in the previous example.
It is possible to visualize the entire structure of directories and files created by the generator, as we can see in the...
Change the font size
Change margin width
Change background colour