buongiorno a tutti,
con la guida sotto mano sto cercando di capire come utilizzare la funzione $http per richiamare, da uno script angularjs, dei valori contenuti dentro una tabello di un database scritto in python.
ora... la guida in questione (https://docs.angularjs.org/api/ng/service/$http)
mi dice un esempio del tipo:
codice:
$http({method:'GET', url:'/someUrl'}). success(function(data, status, headers, config) {
// this callback will be called asynchronously
// when the response is available
}).
error(function(data, status, headers, config) {
// called asynchronously if an error occurs
// or server returns response with an error status. });
ok, fin qui io potrei pure esserci ovvero dentro success gli dico di leggermi la tabella che mi interessa del mio db in python, quello che mi chiedo io invece è: come faccio a leggere questa tabella?
ps: se ho sbagliato strada o ho sbagliato toalmente direzione fatemelo presente