Thursday, 12 February 2015

Angular Hyperlink directive

Here’s a simple example how to create your own hyperlink directive, demonstrating changing the DOM with directives.


hyperlink-usage Directive: DOM: simple

Here's another example this time using an explicit call of the transclude function:

DOM: hyperlink

Here I’ve kept the hyperlink element in the DOM as this is considered a best practise by the Angular team since v1.3.