Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ShopControllers.controller('ItemCtrl', ['$scope', '$routeParams', '$http',
- function ($scope, $routeParams, $http) {
- $http.get('json/items.json').then(function(data) {
- $scope.items = data;
- $scope.item = $scope.items[$routeParams.categoryId]['groups'][$routeParams.groupId]['types'][$routeParams.typeId]['items'][$routeParams.itemId];
- }, function(err) {});
- $scope.categoryId = $routeParams.categoryId;
- $scope.groupId = $routeParams.groupId;
- $scope.typeId = $routeParams.typeId;
- }
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement