Mastering AngularJS Directives

Develop, maintain, and test production-ready directives for any AngularJS-based application.

Mastering AngularJS Directives

Mastering
Josh Kurz

1 customer reviews
Develop, maintain, and test production-ready directives for any AngularJS-based application.
$25.99
$41.99
RRP $25.99
RRP $41.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2016

With unlimited access to a constantly growing library of over 3,500 courses, a subscription to Mapt gives you everything you need to get that next promotion or to land that dream job. Cancel anytime.

+ Collection
Free Sample

Book Details

ISBN 139781783981588
Paperback210 pages

Book Description

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.

Table of Contents

Chapter 1: The Tools of the Trade
Introduction to directives
Summary
Chapter 2: Building a Stopwatch Directive
Breaking down the stopwatch
Writing the stopwatch
Summary
Chapter 3: Harnessing External JavaScript Libraries with Directives
Incorporating third-party libraries
Testing directives that use third-party libraries
Wrapping the gauge.js file
Wrapping the fullCalendar.js file
Summary
Chapter 4: Compiling the Advantages
Common use cases for compiling the DOM
Using transclusion in a directive
Creating recursive directives
Compiling templates and their many values
Introduction to the media player directive
Summary
Chapter 5: Communication between Directives
Testing integrated directives
Using scope objects for communication
How to use isolate scopes
Collaborating with controllers
Summary
Chapter 6: Working with Live Data
Techniques that drive directives
Directives can be in charge
Working with D3
Summary
Chapter 7: Optimization and Code Quality
AngularJS code quality
Optimization of the directives
Less bindings yield faster results
Summary
Chapter 8: Directives and Animations
Providing animations
CSS-based animations
JavaScript-based animations
Summary
Chapter 9: Conclusion
A directive's building blocks
Third-party libraries
The compile cycle
Testing directives
Directive intercommunication
Quality and performance
Animations
Summary

What You Will Learn

  • Master the ability to alter and transform DOM in an AngularJS context
  • Utilize and customize a directive that uses the core animation service
  • Incorporate any third-party library, with Angular Zen, which has a focus on advanced DOM manipulation
  • Discover the advantages of directives that yield the ability to compile dynamic templates
  • Understand every directive API option and their available uses
  • Find out how and why different types of tests are used on all types of directives
  • Optimize and enhance your application with custom directives
  • Explore what the future has in store for AngularJS directives and how it will tie into the present style of writing directives

Authors

Table of Contents

Chapter 1: The Tools of the Trade
Introduction to directives
Summary
Chapter 2: Building a Stopwatch Directive
Breaking down the stopwatch
Writing the stopwatch
Summary
Chapter 3: Harnessing External JavaScript Libraries with Directives
Incorporating third-party libraries
Testing directives that use third-party libraries
Wrapping the gauge.js file
Wrapping the fullCalendar.js file
Summary
Chapter 4: Compiling the Advantages
Common use cases for compiling the DOM
Using transclusion in a directive
Creating recursive directives
Compiling templates and their many values
Introduction to the media player directive
Summary
Chapter 5: Communication between Directives
Testing integrated directives
Using scope objects for communication
How to use isolate scopes
Collaborating with controllers
Summary
Chapter 6: Working with Live Data
Techniques that drive directives
Directives can be in charge
Working with D3
Summary
Chapter 7: Optimization and Code Quality
AngularJS code quality
Optimization of the directives
Less bindings yield faster results
Summary
Chapter 8: Directives and Animations
Providing animations
CSS-based animations
JavaScript-based animations
Summary
Chapter 9: Conclusion
A directive's building blocks
Third-party libraries
The compile cycle
Testing directives
Directive intercommunication
Quality and performance
Animations
Summary

Book Details

ISBN 139781783981588
Paperback210 pages
Read More
From 1 reviews

Read More Reviews