× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Code example of using AngularJS $http service

Stepan Suvorov
Apr 27, 2015
<pre><code class="language-javascript"> //$http.get() returns promise $http.get('http://jsonplaceholder.typicode.com/posts').then(function(results){ $scope.posts = results.data; });</code></pre> <p> </p> <p>http://jsfiddle.net/STEVER/Ls76sj8y/4/</p>
comments powered by Disqus