I am working on a new AngularJS app. I would like to have something similar to JSOUP functionality but on AngularJS.
Questions :
- How can I get HTML code of a external website ?
- How can I split them by "elements" (i.e : div, span etc...)?
I tried to use $http.get in app.js:
$scope.test = function(){
$http.get("https://www.civiweb.com/FR/offre/71087.aspx").success(function(data){
$scope.test = data;
})
.error(function(data){
console.log("Error getting HTML : "+data);
});
}
index.html
<div>{{test}}</div>
Not working ...
I hope you can help me, Thank you