OWL ITS + 탐지시스템(인터넷 진흥원)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
 * Created by maprex on 2021-11-04.
 */
'use strict';
 
define(['app'],
    function (app) {
        app.config(function ($stateProvider) {
            $stateProvider
                .state('hostingField', {
                    abstract : true,
                    url : "/hostingField",
                    templateUrl : "views/common/app.html",
                    resolve : {
                        authorize : function (Auth) {
                            return Auth.authorize();
                        },
                        translatePartialLoader : function ($translate, $translatePartialLoader) {
                            $translatePartialLoader.addPart('global');
 
                            return $translate.refresh();
                        }
                    }
                })
                .state('hostingField.list', {
                    url : '/hostingField',
                    data : {
                        authorities : ['CUSTOM_FIELD_TOTAL']
                    },
                    templateUrl : 'views/hostingField/hostingFieldList.html',
                    controller : "hostingFieldListController",
                    resolve : {
                        loadController : ["$q", function ($q) {
                            var deferred = $q.defer();
                            require(["hostingFieldListController", 'jsTable', 'tableColumnGenerator', 'hostingFieldService', 'modalFormAutoScroll'
                                , 'formSubmit', 'jsShortCut', 'inputRegex'], function () {
                                deferred.resolve();
                            });
 
                            return deferred.promise;
                        }]
                    }
                });
        })
    });