I have written the code but not getting output. How can I print the output on the page using AngularJS?
When I am using the dynamic URL, the active link color change isn't working.
// Grab path parameters and query parameters
var routeParameters = $routeParams;
$scope.pageParameter = (routeParameters["pageParam"] || "No page parameter");
$scope.queryParameter = (routeParameters["queryParam"] || "No query parameter");
// Do an $http call to your site
$http({
url: "http://keralapsctuts.com/app/index.php",
method: "POST",
data: {
param1: $scope.pageParameter,
param2: $scope.queryParameter
}
}).success(function(response) {
$scope.values = reponse;
});