'use strict'; angular.module('aps_manager').controller('MBOList', function($scope, $http, APSRest, $filter, $q) { $scope.mbolist = []; $scope.bu2_label = ''; $scope.userdata = {}; APSRest.UserData.query() .$promise.then(function(response) { $scope.userdata = response; APSRest.MBOList.query({ employeeid: response.employeeid }) .$promise.then(function(response) { $scope.mbolist = response.mbolist; $scope.bu2_label = response.bu2_label; }); }); });