Summary

AngularJS directives extend the behavior of HTML. You can apply directives to AngularJS templates as HTML elements, attributes, and classes. You define the functionality of directives by using JavaScript code. AngularJS provides several built-in directives that interact with form elements, bind data in the scope to the view, and interact with browser events. For example, ngModel binds the value of a form element directly to the scope. When the scope value changes, so does the value displayed by the element and vice versa.

Get Learning AngularJS 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.