Answer the question
In order to leave comments, you need to log in
How to test this in Angular?
There is a controller.
function CustomersController(Customer) {
var vm = this;
Customer.getAll().success(function(data) {
vm.allCustomers = data;
});
}
function UserService($http, $timeout, $q) {
this.getAll = getAll;
function getAll() {
return $http.get('./users.json');
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question