Creating Custom AngularJS Directives Part 4 - Transclusion and Restriction

added by JavaScript Kicks
9/18/2014 7:41:58 AM

161 Views

In this post I’ll continue the series on building custom directives and discuss “transclusion” and how it can be used to add flexibility to directives. Directives can be defined in HTML as elements, as an attribute of an element, as a CSS class, or as a comment. How do you restrict how your custom directive can be used though?


0 comments