angularjs detailed view page content is not loading -
i have view thumbs , have unique urls(numbered - {{items.indexof(item)}} ) trying load json info detailed view reason refusing take data.
i have controller:
app.controller('submissionviewctrl', function($scope, http, $routeparams){ $http.get('content.json').success(function(data) { $scope.content = data; $scope.whichitem = $routeparams.itemid; }); });
and in submission-full.html
have:
ng-model="content"
and
{{ item[whichitem].username }}, {{ item[whichitem].doneaction }}
my plunker example
could have please , allow me know doing wrong , how prepare that? help appreciated.
change this:
submissioncontrollers .controller('submissionviewctrl', ['$scope', '$http', '$routeparams', function($scope, $http, $routeparams){
change http
$http
.
angularjs angularjs-routing
No comments:
Post a Comment