Angularjs Examples

AJS Examples

AngularJS ng-Href Directive

The AngularJS ng-href directive is used to dynamically bind AngularJS variables to the href attribute.


click here! 

AngularJS ng-Href Directive Example

<title>My first AngularJS ng-href Directive code</title>
<Script SRC="">
//Defining Controller Using Standard Javascrip Object Constructor
function CustomerController($scope) {
  $scope.siteName = "";
<div ng-app="">
<div ng-controller="CustomerController"> 
<a href="{{ siteName }}"/>Click Here!</a>

See Live Example