Get Blog Data with Angular $http
by Rajdeep Chandra
HTML
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css">
<div class="row" ng-controller="blogSection">
<div class="col-md-6" ng-repeat="blog in blogs">
<p class="blogcontent">{{}}</p>
<p class="blogtime">{{}}</p>
</div>
</div>
JavaScript
var app = angular.module('myApp',[]);
app.controller('blogSection',function($scope){
});
$http.get('http://demo6727947.mockable.io/bangaloredata')
.success
(function (data) {
$scope.peopledata = data;
});
$scope.searchkey = '';
});
})