What is the best method to use a $http service in angular JS?
How can we achieve the promise paradigm and do the best
Any help would be appreciated.
I have gone thru the API developer’s guide and found the following..
$http.get(url)
I was wondering what would the promise call would look like and how do i attach a callback function to this??
The best way to implement a callback is something like this
Now if you want to achieve the promise paradigm you need to have a resolve config in your controller