Currently, my setup looks like this:
HTML Code
<div ng-app="home" ng-controller="customersCtrl">
<div ng-bind-html="home" id="content">{{content}}</div>
</div>
JS Code
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;
});
}]);
Everything is working fine, but now I want to change the content when a link is clicked, like this:
<a href="#home/">Home</a> | <a href="#user/">User</a>
Does anyone know how I can achieve this?