Advertisement
Guest User

Untitled

a guest
Apr 17th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ShopControllers.controller('ItemCtrl', ['$scope', '$routeParams', '$http',
  2.   function ($scope, $routeParams, $http) {
  3.     $http.get('json/items.json').then(function(data) {
  4.       $scope.items = data;
  5.       $scope.item = $scope.items[$routeParams.categoryId]['groups'][$routeParams.groupId]['types'][$routeParams.typeId]['items'][$routeParams.itemId];
  6.     }, function(err) {});
  7.  
  8.     $scope.categoryId = $routeParams.categoryId;
  9.     $scope.groupId = $routeParams.groupId;
  10.     $scope.typeId = $routeParams.typeId;
  11.   }
  12. ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement