Hello friends,
When I’m doing a search on an API the application crashes, and when the process ends it back up and running normally. Does anyone know how to solve? I structure my controller like this:
app.controller('myController', function($scope){
$scope.data = null;
var init = function(){
loadData();
};
var loadData = function(){
$scope.data = callAPI("users/find").data;
};
init();
});