FREELessons: 17Length: 1.3 hours

Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

2.3 Restricting Directive Usage

An Angular directive can be used in several different ways: as an element, as an attribute, as a class, and even as a comment. We'll look at how to control this behaviour with the restrict property.