|
|
|
@ -4,13 +4,16 @@ define(['angular', 'uiRouter', 'uiBootstrap'], function (angular) {
|
|
|
|
|
app.config(['$stateProvider', function ($stateProvider) {
|
|
|
|
|
$stateProvider.state('listMenu', {
|
|
|
|
|
url: '/menu?role',
|
|
|
|
|
templateUrl: '/manage_menu.html',
|
|
|
|
|
templateUrl: '/static/config/managers/templates/managers.html',
|
|
|
|
|
controller: 'listMenuCtrl'
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
}]);
|
|
|
|
|
app.controller('listMenuCtrl', ['$scope', '$http', '$filter','$uibModal', 'commonDialog','stateParams', function ($scope, $http,$filter, $uibModal, commonDialog,$stateParams) {
|
|
|
|
|
console.log("dadadadada + " + $stateParams.role);
|
|
|
|
|
app.controller('listMenuCtrl', ['$scope', '$http', '$filter','$uibModal', 'commonDialog','$stateParams', function ($scope, $http,$filter, $uibModal, commonDialog,$stateParams) {
|
|
|
|
|
function init() {
|
|
|
|
|
console.log("dadadadada + " + $stateParams.role);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
init();
|
|
|
|
|
|
|
|
|
|
}]);
|
|
|
|
|
return app;
|
|
|
|
|