Well, I have 2 HTML pages. Parent html page has some images and names for those images. Both the details are retrieved from rest WCF. Now I am stuck up with next part. i.e. When i click a particular image, i should get the details of that image in the sub page(next html page).I used ng-click and tried the controller. I am able to see the result in console's log. But not in html page.
app.controller("details", function($scope, $http, RESTService) {
$scope.details=[];
$scope.get=function(HTId){
console.log(HTId);
var url="url" +HTId;
$http.get(url).then(function(pl) {
console.log(pl);
$scope.details=pl.data;
console.log($scope.details);
});
}
});
This is my controller. Any issues? Thanks in advance for the relevant solutions :) :)