diff --git a/@salix/app/index.js b/@salix/app/index.js
index 4d375b31f..cb9a3f178 100644
--- a/@salix/app/index.js
+++ b/@salix/app/index.js
@@ -1 +1 @@
-export * from './src/app'
\ No newline at end of file
+export * from './src/app'
diff --git a/@salix/app/src/app.js b/@salix/app/src/app.js
index 6f2c434cc..b3ac02fdd 100644
--- a/@salix/app/src/app.js
+++ b/@salix/app/src/app.js
@@ -2,5 +2,4 @@ import {bootstrap} from './bootstrap';
import * as spliting from './spliting';
import * as routes from './routes';
-
bootstrap();
diff --git a/@salix/app/src/routes.js b/@salix/app/src/routes.js
index 2e174fa18..563a6de20 100644
--- a/@salix/app/src/routes.js
+++ b/@salix/app/src/routes.js
@@ -1,11 +1,8 @@
import * as core from '@salix/core';
-
import * as spliting from './spliting';
import * as routes from './fake';
-
core.module.config(function ($stateProvider, $urlRouterProvider) {
-
core.splitingRegister.registerGraph(routes.graphRoutes.graphDependendies);
function loader(route) {
@@ -29,5 +26,5 @@ core.module.config(function ($stateProvider, $urlRouterProvider) {
loader: loader(route)
}
})
- }, this);
+ });
});
diff --git a/@salix/compras/index.js b/@salix/compras/index.js
index 283db8c3b..deb604b56 100644
--- a/@salix/compras/index.js
+++ b/@salix/compras/index.js
@@ -1 +1,2 @@
-export * from './src/compras';
\ No newline at end of file
+export * from './src/compras';
+
diff --git a/@salix/compras/routing.json b/@salix/compras/routing.json
deleted file mode 100644
index ac6307544..000000000
--- a/@salix/compras/routing.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "route": "buys",
- "template": "buys.template"
-}
diff --git a/@salix/core/src/core.js b/@salix/core/src/core.js
index 34075fc61..f0e8af9e1 100644
--- a/@salix/core/src/core.js
+++ b/@salix/core/src/core.js
@@ -1,11 +1,15 @@
/**
* export public module
*/
+
export * from './module'
export * from './util'
+
export {SplitingRegister as splitingRegister} from './splitingregister'
export {NAME as RESOLVEDEFAULTCOMPONENT, ResolveDefaultComponent} from './resolveDefaultComponents'
export {NAME as INTERPOLATE,Interpolate} from './interpolate'
+export {NAME as ROUTESLOADER, RoutesLoader} from './routesLoader'
+
export {NAME as BUTTON,directive as ButtonDirective} from './button/button'
export {NAME as BUTTONMT,factory as buttonmt} from './button/button.mt'
export {NAME as BUTTONBT,factory as buttonbt} from './button/button.bt'
@@ -20,4 +24,4 @@ export {NAME as TEXTFIELDMT,factory as textfieldmt} from './textfield/textfield.
export {NAME as TEXTFIELDBT,factory as textfieldbt} from './textfield/textfield.bt'
export {NAME as LABEL,directive as LabelDirective} from './label/label'
export {NAME as LABELMT,factory as labelmt} from './label/label.mt'
-export {NAME as LABELBT,factory as labelbt} from './label/label.bt'
\ No newline at end of file
+export {NAME as LABELBT,factory as labelbt} from './label/label.bt'
diff --git a/@salix/core/src/routesLoader.js b/@salix/core/src/routesLoader.js
new file mode 100644
index 000000000..9fb665721
--- /dev/null
+++ b/@salix/core/src/routesLoader.js
@@ -0,0 +1,29 @@
+
+import {module as _module} from './module'
+import * as util from './util'
+
+export const NAME = util.getProviderName ('RoutesLoader')
+
+export class RoutesLoader
+{
+ constructor () {}
+
+ $get ($http)
+ {
+ let script = document.currentScript || (() => {
+ let scripts = document.getElementsByTagName ('script');
+ return scripts[scripts.length - 1];
+ }) ();
+
+ let routesCdn = script.getAttribute ('routes-cdn');
+
+ return $http
+ ({
+ method: 'GET',
+ url: routesCdn
+ })
+ }
+}
+
+_module.provider (NAME, () => new RoutesLoader ())
+
diff --git a/@salix/crud/src/crud.js b/@salix/crud/src/crud.js
index 58323041f..14f65f6df 100644
--- a/@salix/crud/src/crud.js
+++ b/@salix/crud/src/crud.js
@@ -1,2 +1,4 @@
export * from './module';
-export {NAME as CUSTOMER_INDEX, COMPONENT as CUSTOMER_INDEX_COMPONENT} from './customer/index'
\ No newline at end of file
+export {NAME as CUSTOMER_INDEX, COMPONENT as CUSTOMER_INDEX_COMPONENT} from './customer/index'
+export {NAME as CUSTOMER_ADD, COMPONENT as CUSTOMER_ADD_COMPONENT} from './customer/index/add'
+
diff --git a/@salix/crud/src/customer/index/add.html b/@salix/crud/src/customer/index/add.html
new file mode 100644
index 000000000..308197934
--- /dev/null
+++ b/@salix/crud/src/customer/index/add.html
@@ -0,0 +1 @@
+