Sharing Top Content from the Angular-sphere.

Directive Restrictions

  • The lesson digs into how and why to use Directive restrictions.
  • By default AngularJS directives can be used with elements, attributes, classes, and comments.
  • Your link to unlock this lesson will be sent to this email address.
  • You set up an attribute using the restrict A, for A is attribute, B is element.
  • Now the attributes are going to add things like behaviors.

Read the full article, click here.


@eggheadio: “Directive Restrictions by @johnlindquist #Angular 1.x”


By default AngularJS directives can be used with elements, attributes, classes, **and** comments. Many times we want to restrict it to one or more of those to control how a directive will be used. This lesson digs into how and why to use Directive restrictions.


Directive Restrictions

Comments are closed, but trackbacks and pingbacks are open.