$http.get('/anguler-tasks/js/getTodoData.json') .then(function(response) { $scope.todoslist = response.data; }, function(err) { res = err; });