Here is my controller code:
angular.module('navApp', []).controller('blogCtrl', function($scope, $http) {
$http.get("../json/blogs.json").success(function(response) {$scope.blogs = response.blogs;});
});
How can I load the blogs.json? Blogs.json contains two 'blogs'.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…