0
I’m trying to enter the data I took from my API, in the SQLITE database of my app, I already searched a lot but besides not being able to do also I could not understand how I can do this.
Follow the code of mine service
:
app.service('CategoriesService', function($http, $q) {
var url = 'http://meusite.com.br/api/';
return {
allCategories: function() {
return $http.get(url).then(function(response) {
var json = JSON.stringify(response.data);
console.log(JSON);
return response.data;
});
}
}
})
I even used the stringify
to see if it would be easier to insert, but I could not do with the examples I found and much less with the tests I did.