Book Image

Mastering AngularJS Directives

By : Josh Kurz
Book Image

Mastering AngularJS Directives

By: Josh Kurz

Overview of this book

<p>AngularJS offers many features that allow the creation of rich, compelling web applications. Directives are by far the most important feature to incorporate into any skill set. This book starts off by teaching basic and advanced techniques for the art of directive writing. The different techniques are taught by a series of examples that showcase when and why certain directives should be created, based on given use cases. It moves on to explain more about how to harness the potential of AngularJS, by incorporating external libraries, optimizing code, and using brand new functions such as animations.<br /><br />Finally, the book includes an overview of the techniques and best practices that AngularJS developers need to keep in mind while developing their own applications. The overall goal of this book is to teach different aspects of directive writing that can be consumed by all levels.</p>
Table of Contents (16 chapters)
Mastering AngularJS Directives
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
The Tools of the Trade
Index

AngularJS code quality


AngularJS offers many ways to write good quality JavaScript and HTML. Each language has its own specific implementation techniques that allow better performance and overall better organization. Being able to write orthogonal HTML applications relies upon the separation of the model and the view.

HTML is a domain-specific language that is rigid and built for a specific purpose. Today's Web is moving faster than what any W3C board can keep up with, and because of this, the Web must create more specific domain languages. AngularJS has opened a new vantage point in the reality of what an HTML5 application is. This reality showcases HTML that is built specifically for the application it lives in.

The importance of templates

HTML and CSS have no real design pattern constructs. There are ways to organize and define websites that follow strict nomenclature and design standards, but there is no way to utilize facades or other widely used design patterns in HTML. This is changing...