Answer the question
In order to leave comments, you need to log in
How to load data via AJAX in Angular JS at a given URL?
There is a URL like this: /home/1
How can I find this URL and call a method in an Angular JS controller?
Tried using routing:
.when("/home/:id", {
templateUrl: " ",
controller: "TestController",
resolve: {
message: function(app, helpers, $route){
console.log($route);
return app.get({
user: 533,
id: 2
}).then(function (response) {
console.log($route);
return helpers.toArray(response.app);
});
}
}
});
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