Here’s a simple example how to create your own hyperlink directive, demonstrating changing the DOM with directives.
Usage:
Here's another example this time using an explicit call of the transclude function:Here I’ve kept the hyperlink element in the DOM as this is considered a best practise by the Angular team since v1.3.
No comments:
Post a Comment