I make an $http.get
request to apache server and the response is an HTML page. I would like to use jquery to some data from the HTML page.
The code of my controller is:
app.controller('MainController', ['$scope', '$http', function($scope, $http) {
$scope.showImages = function() {
$http.get('http://localhost/images/').success(function(data) {
$scope.images = data;
});
};
}]);
I can see that in $scope.images
is stored the html page that return from server but I do not have a clue how to use jquery to extract e.g the value of all href appeared in the page.