15 lines
486 B
JavaScript
15 lines
486 B
JavaScript
'use strict';
|
|
|
|
angular.module('microStock')
|
|
.controller('ItemCtrl',['$scope','$http','$stateParams',function($scope,$http,$stateParams){
|
|
$scope.obj = {};
|
|
$scope.list = [];
|
|
|
|
$http.get(config.microservice_dependencies.productById.replace("%d", $stateParams.productid)).then(function(res) {
|
|
$scope.obj = res.data
|
|
});
|
|
$http.get(config.store.goods.productById.replace("%d",$stateParams.productid)).then(function(res) {
|
|
$scope.list = res.data
|
|
});
|
|
}]);
|