阅读背景:

如何通过单击列表从json获取特定id的包含

来源:互联网 

controller.js

.controller('FeedCtrl', function($scope, $http) {
var path = 'data/data.json';
var conditions = $http.get(path).then(function(resp) {
// $http.get('https://api.myjson.com/bins/147ny').then(function(resp) {
$scope.conditions = resp.data.employees ;  

}, function(err) {
console.error('ERR', err);
// err.status will contain the status code
})

.controller('FeedDetailCtrl', function($scope, $stateParams ) {
 $scope.condition = conditions.get($stateParams.feedId);
 })
 });
.controller('FeedCtrl', functio



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: