← BYTES
AngularJS·Starter·Ref: 5.1.5

What is a directive in AngularJS, in the simplest terms?

Have a question about this video? Mention reference 5.1.5 when you contact us.

a.A built-in browser API
b.A marker on a DOM element (an attribute, element name, class, or comment) that tells AngularJS's compiler to attach specified behavior to that DOM element
c.A function that only runs on page load
d.A database query helper
Directives are the mechanism AngularJS uses to extend HTML -- ng-model, ng-repeat, and ng-click are all built-in directives, and developers can also define their own custom directives the same way.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES515#AngularJS