Mastering AngularJS Directives
By Josh Kurz
Publisher: Packt Publishing
Final Release Date: June 2014
Pages: 210

In Detail

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.

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.

Approach

This book takes a hands-on, step-by-step approach that helps the reader focus on the most important points and learn exactly what they need. All of the directives in the book have live examples that go along with them, and there is a strong focus on how tests are incorporated into all types of directives.

Who this book is for

Mastering AngularJS Directives is intended for developers who have experience with AngularJS and have a need for creating or customizing directives in any type of AngularJS application. This is a niche topic that focuses on very specific fundamental concepts of directive writing. This book is targeted at developers who have tried their hand at AngularJS, but would like to master it by learning how to make their own directives.

Product Details
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyMastering AngularJS Directives
 
4.0

(based on 1 review)

Ratings Distribution

  • 5 Stars

     

    (0)

  • 4 Stars

     

    (1)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

Reviewed by 1 customer

Displaying review 1

Back to top

 
4.0

Excellent insight into Directives

By Duncan

from Norfolk, UK

About Me Developer

Verified Reviewer

Pros

  • Accurate
  • Concise
  • Easy to understand
  • Helpful examples
  • Well-written

Cons

    Best Uses

    • Expert
    • Intermediate

    Comments about oreilly Mastering AngularJS Directives:

    This is a very technical book and one which I believe is aimed at intermediary level of skills when using Angular JS. There is no introduction in to Angular JS and jumps straight into Angular JS Directives. If you are new to Angular JS then put this on your must read list as it will be required once you have an understanding of the basics of Angular JS.
    The book covers all aspects of Angular JS Directives and the author walks through examples that really make it easy to understand with real world scenarios.
    So far I have only read the first four chapters and the book goes into great detail on how to use directives for a particular scenario.
    The book starts with a high level introduction to directives, what they are and how they are created, and covers things like Scope, Controllers and ControllerAs, Require, Restrict to name a few. Each section describes how to set up the directive and an example is included to help with the explanation.
    The second chapter covers building a Stopwatch directive, this chapter also introduces the reader to testing and to write in a BDD style format. Building the tests first and then writing just enough code so the test passes.
    The third chapter covers External Javascript (JS) libraries and demonstrates how and when to use the digest and apply. So that changes in the external (JS) files will be reflected in Angular JS when an event has happened in one of the external (JS) files.
    Once I complete the book I will update this review covering the remaining chapters. But as an early review I would certainly recommend this book as it provides great insight into the world of AngularJS Directives. Directives can be tricky to fully understand at first but once you have a good understanding of the basics then you realise just how powerful Directives can be.

    Disclaimer: I was given a copy of this book to review as an independent developer, I do not work for Packtpubishing.

    Displaying review 1

    Back to top

     
    Buy 2 Get 1 Free Free Shipping Guarantee
    Buying Options
    Immediate Access - Go Digital what's this?
    Ebook: $25.99
    Formats:  ePub, Mobi, PDF