Ng-include
This directive include another html file
Custom Directives
You can create your own directives as elements or attributes.
*Tip: Use Elemente directives for UI widgets and Attribute Directives for mixin behaviors as a tooltip.
Element Directive
In this case this directive is created as an Element that include an html pageAttribute Directive
Use a Controller in a Directive
You need to use:
- The keyword "controller" to specify the functionality
- The keyword "controllerAs" to specify the alias
- Then use in the custom directive without ng-controller, because the controller functionality is defined in the new directive
Comentarios
Publicar un comentario