Chapter 5. Directives

This chapter covers

  • What directives are and why they’re helpful
  • Different kinds of directives and what they’re best suited for
  • The main components that make up a directive
  • Some directives we use in Angello

5.1. Introduction to directives

Welcome to the world of directives: one of the most powerful and important features of the AngularJS framework. In this chapter we’ll build three directives for Angello and discuss the techniques and reasoning behind each one. We’ll start out simple and work our way up in complexity to some really neat things you can use in your own web applications.

5.1.1. What are directives?

AngularJS proclaims that it’s “HTML enhanced for web apps!” What does it mean to enhance HTML?

HTML ...

Get AngularJS in Action 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.