refactor to move aclService from salix to Core

This commit is contained in:
Carlos 2017-10-20 08:39:30 +02:00
parent a530c67336
commit 3badf2a48a
4 changed files with 6 additions and 6 deletions

View File

@ -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']; aclService.$inject = ['aclConstant'];
function aclService(aclConstant) { function aclService(aclConstant) {
@ -29,4 +32,4 @@ function aclService(aclConstant) {
}; };
} }
ngModule.service('aclService', aclService); module.service('aclService', aclService);

View File

@ -4,6 +4,7 @@ import './template';
import './getTemplate'; import './getTemplate';
import './app'; import './app';
import './interceptor'; import './interceptor';
import './aclService';
export * from './util'; export * from './util';
export {default as splitingRegister} from './splitingRegister'; export {default as splitingRegister} from './splitingRegister';

View File

@ -1,6 +1,5 @@
import './module'; import './module';
import './spliting'; import './spliting';
import './aclService';
import './configroutes'; import './configroutes';
import './config'; import './config';
import './run'; import './run';

View File

@ -2,9 +2,6 @@ import ngModule from './module';
export const appName = 'salix'; export const appName = 'salix';
var acl = window[appName] ? window[appName].acl : {};
ngModule.constant('aclConstant', acl);
config.$inject = ['$translatePartialLoaderProvider', '$httpProvider']; config.$inject = ['$translatePartialLoaderProvider', '$httpProvider'];
export function config($translatePartialLoaderProvider, $httpProvider) { export function config($translatePartialLoaderProvider, $httpProvider) {
$translatePartialLoaderProvider.addPart(appName); $translatePartialLoaderProvider.addPart(appName);