Im Moment habe ich dies:Winkel js Änderung Inhalt Link
HTML-Script
<div ng-app="home" ng-controller="customersCtrl">
<div ng-bind-html="home" id="content">{{content}}</div>
</div>
JS-Script
angular.module('home', []).controller('customersCtrl', ['$scope', '$http', '$sce', function($scope, $http, $sce) {
$http.get("http://www.example.de/home/").success(function (response) {
document.getElementById("content").innerHTML = response;
});
}]);
Es funktioniert gut, aber jetzt will ich ändern Der Inhalt auf klicken Sie auf einen a-Tag-Link Link:
<a href="#home/">Home</a> | <a href="#user/">User</a>
Kann mir jemand sagen, wie ich das machen kann?
werden Sie neue HTTP-Anfrage über diese Links senden? Wie "http://www.example.de/user" für User und "http://www.example.de/home" für Home? – oguzhan00