/** * Created by wisestone on 2017-12-21. */ 'use strict'; define(['app'], function (app) { app.config(function ($stateProvider) { $stateProvider .state('notices', { abstract : true, url : "/notices", templateUrl : "views/common/app.html", resolve : { authorize : function (Auth) { return Auth.authorize(); }, translatePartialLoader : function ($translate, $translatePartialLoader) { $translatePartialLoader.addPart('global'); return $translate.refresh(); } } }) .state('notices.list', { url : '/noticeList', data : { authorities : ['NOTICE_READ'] }, templateUrl : 'views/notice/noticeList.html', controller : "noticeListController", resolve : { loadController : ["$q", function ($q) { var deferred = $q.defer(); require(['noticeListController', 'noticeAddController', 'noticeModifyController', 'noticeViewController', 'noticeService', 'jsTable', 'tableColumnGenerator', 'formSubmit'], function () { deferred.resolve(); }); return deferred.promise; }] } }); }) });