angular.directive.ng:href

Work in Progress This page is currently being revised. It might be incomplete or contain inaccuracies.

Description

Using <angular/> markup like {{hash}} in an href attribute makes the page open to a wrong URL, ff the user clicks that link before angular has a chance to replace the {{hash}} with actual URL, the link will be broken and will most likely return a 404 error. The ng:href solves this problem by placing the href in the ng: namespace.

The buggy way to write it:


The correct way to write it:


Usage

<ANY ng:href="template">
   ...
</ANY>

Parameters