AngularJS

AngularJS Directives

AngularJS Filters and Elements

AngularJS Tutorials

AngularJS ng href Directive

AngularJS ng-href Directive

 

 

The ng-href directive is used to override the original href attribute of an a element. The ng-href directive should be used instead of href if you have AngularJS code inside the href value.
It is an additional security layer to check whether the link is broken or not before the user clicks on it.

 

Syntax:-

 

< a ng-href="string" >< /a >

 

Further Explanation:-

 

Value Description
string A string value, or an expression resulting in a string.

Code Explanation

All Tutorials related to AngularJS Directives

All Sections related to AngularJS