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'];
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 './app';
import './interceptor';
import './aclService';
export * from './util';
export {default as splitingRegister} from './splitingRegister';

View File

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

View File

@ -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);