/** * Created by wisestone on 2018-05-08. */ 'use strict'; define(['app'], function (app) { app.config(function ($stateProvider) { $stateProvider .state('customFields', { abstract : true, url : "/customField", templateUrl : "views/common/app.html", resolve : { authorize : function (Auth) { return Auth.authorize(); }, translatePartialLoader : function ($translate, $translatePartialLoader) { $translatePartialLoader.addPart('global'); return $translate.refresh(); } } }) .state('customFields.list', { url : '/customFieldList', data : { authorities : ['CUSTOM_FIELD_TOTAL'] }, templateUrl : 'views/customField/customFieldList.html', controller : "customFieldListController", resolve : { loadController : ["$q", function ($q) { var deferred = $q.defer(); require(["customFieldListController", 'customFieldAddController', 'customFieldModifyController', 'jsTable', 'tableColumnGenerator', 'customFieldService', 'modalFormAutoScroll' , 'formSubmit', 'jsShortCut', 'inputRegex'], function () { deferred.resolve(); }); return deferred.promise; }] } }); }) });