O'Reilly logo

AngularJS in Action by Lukas Ruebbelke with Brian Ford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required