Chapter 1. Maximizing AngularJS Directives

In this chapter, we will cover the following recipes:

  • Building a simple element directive
  • Working through the directive spectrum
  • Manipulating the DOM
  • Linking directives
  • Interfacing with a directive using isolate scope
  • Interaction between nested directives
  • Optional nested directive controllers
  • Directive scope inheritance
  • Directive templating
  • Isolate scope
  • Directive transclusion
  • Recursive directives

Introduction

In this chapter, you will learn how to shape AngularJS directives in order to perform meaningful work in your applications. Directives are perhaps the most flexible and powerful tool available to you in this framework and utilizing them effectively is integral to architecting clean and scalable applications. ...

Get AngularJS Web Application Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.