I am trying to pull a JSON file to an ion-list but I can’t seem to get it to display. I also want to set up a detail page that pulls data from the list page. Any ideas? I’m still trying to wrap my head around how JSON files work too.
you’ve set $scope.sessions in your controller but try to iterate over session (without the s)… try to change ng-repeat=“sessions in session” to “session in sessions”
and don’t forget to update {{sessions.}} to {{session.}}
HI mmilligan
i m using same but my one is not working can you pls help me. in controller i write this
.controller('SessionCtrl', ['$scope', '$http', function($scope, $http) {
$http.get('http://tmcs.no-ip.info:83/iAutoCount/Profile.svc/json/GetProfile?dbName=5bvq9pq8EokHTf+uB/yLD61bh48juTfB/Up19EK4bks=&uDId=iKNColFa+oztAVriouDfvMpoNDwsYn9H4aJxSVWFIWpqyPnE1k47C5VUkpntIVPr&appsVersion=1.27.5&deviceUsage=180&appRealVersion=1.27.6&osVersion=8.1').success(function(data) {
console.log(data);
$scope.sessions = data;
});
}])
and in html i m calling
{{session.Profile}}