Ich bin auf der Suche nach der 'ng-href' URL auf Scope-Wert von Controller.Initially auf Seite laden URL ist in Ordnung eingefügt. Aber dann , wenn ich ändern, den Umfang, dass URL
aktualisiert werden sollte<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>
Hier möchte ich die URL aktualisieren mit „www.yahoo.com“, wenn die Funktion aufgerufen wird.
schließen Sie Ihren Anker-Tag korrekt wie '' Test –
Danke, aber ich bin mit Rahmen statt $ rootscope – rUI