From where should REST API request be invoked from angular js?
I.e. from controller, module, service, factory. I am totally confused that what should be the right w
If your going to use that REST API call in more than one controller it is best to create a service that is injected as a dependency into the controllers that need it. Like already mentioned, you want to use $resource to handle RESTful APIs.
index.html:
- {{game.GameName}}
Reference: AngularJS: $resource