O'Reilly logo

Mastering Web Application Development with AngularJS by Pawel Kozlowski, Peter Bacon Darwin

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

Understanding AngularJS widget directives

One of the most powerful features of directives is to be able to create your own domain-specific tags. In other words, you can create custom elements and attributes that give new meaning and behavior to the mark-up in your HTML that is specific to the domain for which you are building the application.

For example, similar to standard HTML tags, you could create a <user> element displaying user information or a <g-map> element that lets you interact with a Google map. The possibilities are endless and the benefit is that your mark-up matches the domain in which you are developing.

Writing a pagination directive

In our SCRUM app, we often have large lists of tasks or backlog items that are unwieldy to display ...

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