refactor to move aclService from salix to Core
This commit is contained in:
parent
a530c67336
commit
3badf2a48a
|
@ -1,4 +1,7 @@
|
|||
import ngModule from './module';
|
||||
import {module} from '../module';
|
||||
|
||||
var acl = window.salix ? window.salix.acl : {};
|
||||
module.constant('aclConstant', acl);
|
||||
|
||||
aclService.$inject = ['aclConstant'];
|
||||
function aclService(aclConstant) {
|
||||
|
@ -29,4 +32,4 @@ function aclService(aclConstant) {
|
|||
};
|
||||
}
|
||||
|
||||
ngModule.service('aclService', aclService);
|
||||
module.service('aclService', aclService);
|
|
@ -4,6 +4,7 @@ import './template';
|
|||
import './getTemplate';
|
||||
import './app';
|
||||
import './interceptor';
|
||||
import './aclService';
|
||||
|
||||
export * from './util';
|
||||
export {default as splitingRegister} from './splitingRegister';
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import './module';
|
||||
import './spliting';
|
||||
import './aclService';
|
||||
import './configroutes';
|
||||
import './config';
|
||||
import './run';
|
||||
|
|
|
@ -2,9 +2,6 @@ import ngModule from './module';
|
|||
|
||||
export const appName = 'salix';
|
||||
|
||||
var acl = window[appName] ? window[appName].acl : {};
|
||||
ngModule.constant('aclConstant', acl);
|
||||
|
||||
config.$inject = ['$translatePartialLoaderProvider', '$httpProvider'];
|
||||
export function config($translatePartialLoaderProvider, $httpProvider) {
|
||||
$translatePartialLoaderProvider.addPart(appName);
|
||||
|
|
Loading…
Reference in New Issue