I'm looking to update the 'ng-href' url on scope value from controller.Initially on page load url is inserted fine. But then when i change the scope that URL should be updated
<a ng-href=={{selectedValue}} /a>
//in my controller
$scope.selectedValue = "www.google.com"
//need to update this url in this function
otherButtonFn = function(){
//want to Update the url here
$scope.selectedValue = "www.yahoo.com"
}
//ng-href is loading initial url but not updating when $scope is called
<a ng-href=="www.google.com" href=""www.google.com" /a>
Here i want to update the url with "www.yahoo.com" when that function is called.