Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

new http version ANGULAR

$http({
    method: 'get', 
    url: 'data/data.json'
}).then(function (response) {
    console.log(response, 'res');
    data = response.data;
},function (error){
    console.log(error, 'can not get data.');
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #http #version #ANGULAR
ADD COMMENT
Topic
Name
2+6 =