Mastering AngularJS Directives

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

Mastering AngularJS Directives

Josh Kurz

1 customer reviews
Develop, maintain, and test production-ready directives for any AngularJS-based application.
Mapt Subscription
FREE
$20.83/m after trial
eBook
$18.20
RRP $25.99
Save 29%
Print + eBook
$41.99
RRP $41.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.20
$41.99
$29.99 p/m after trial
RRP $25.99
RRP $41.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Mastering AngularJS Directives Book Cover
Mastering AngularJS Directives
$ 25.99
$ 18.20
Mastering Machine Learning Algorithms Book Cover
Mastering Machine Learning Algorithms
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $26.98
Add to Cart

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

Recommended for You

AngularJS: Maintaining Web Applications Book Cover
AngularJS: Maintaining Web Applications
$ 59.99
$ 42.00
AngularJS Services Book Cover
AngularJS Services
$ 16.99
$ 11.90
Data-oriented Development with AngularJS Book Cover
Data-oriented Development with AngularJS
$ 19.99
$ 14.00
Learning jQuery, Third Edition Book Cover
Learning jQuery, Third Edition
$ 23.99
$ 16.80
AngularJS Directives Cookbook Book Cover
AngularJS Directives Cookbook
$ 31.99
$ 22.40
What you need to know about Angular 2 Book Cover
What you need to know about Angular 2
$ 0.00