diff --git a/@salix/app/src/app.js b/@salix/app/src/app.js
index a4cf9ee7c..6f2c434cc 100644
--- a/@salix/app/src/app.js
+++ b/@salix/app/src/app.js
@@ -1,3 +1,6 @@
import {bootstrap} from './bootstrap';
-import * as spliting from './spliting'
+import * as spliting from './spliting';
+import * as routes from './routes';
+
+
bootstrap();
diff --git a/@salix/app/src/bootstrap.js b/@salix/app/src/bootstrap.js
index cb1dcaf4a..0c9980703 100644
--- a/@salix/app/src/bootstrap.js
+++ b/@salix/app/src/bootstrap.js
@@ -13,5 +13,5 @@ export const bootstrap = () => {
if (!_element) {
throw new Error("element is not defined");
}
- ng.bootstrap(_element, [NAME]);
+ ng.bootstrap(_element, [NAME]);
};
\ No newline at end of file
diff --git a/@salix/app/src/package.json b/@salix/app/src/package.json
new file mode 100644
index 000000000..626726422
--- /dev/null
+++ b/@salix/app/src/package.json
@@ -0,0 +1,10 @@
+{
+ "name": "@salix/core",
+ "version": "0.0.0",
+ "description": "",
+ "main": "index.js",
+ "repository": {
+ "type": "git",
+ "url": "http://git.verdnatura.es:/salix"
+ }
+}
diff --git a/@salix/app/src/routes.js b/@salix/app/src/routes.js
new file mode 100644
index 000000000..4259fcd63
--- /dev/null
+++ b/@salix/app/src/routes.js
@@ -0,0 +1,21 @@
+import * as core from '@salix/core';
+import * as spliting from './spliting';
+
+
+core.module.config(function($stateProvider, $urlRouterProvider) {
+
+ $urlRouterProvider.otherwise("/");
+
+ $stateProvider
+ .state('index', {
+ url: "/index",
+ template :'',
+ resolve: {
+ loader: function($ocLazyLoad, $q){
+ return $q((resolve) => {
+ spliting.crud($ocLazyLoad, resolve);
+ });
+ }
+ }
+ })
+});
diff --git a/@salix/app/src/spliting.js b/@salix/app/src/spliting.js
index d0cbc59a1..36cf3121d 100644
--- a/@salix/app/src/spliting.js
+++ b/@salix/app/src/spliting.js
@@ -1,19 +1,20 @@
-const crud = () => {
+export const crud = (lazy, resolve) => {
require.ensure([], () => {
- require('@salix/crud')
+ var module = require('@salix/crud');
+ resolve(lazy.load({name:'crud'}));
}, "salix.crud");
};
-const compras = () => {
+export const compras = () => {
require.ensure([], () => {
require('@salix/compras')
}, "salix.compras");
};
-const ventas = () => {
+export const ventas = () => {
require.ensure([], () => {
require('@salix/ventas')
}, "salix.ventas");
};
-const pagos = () => {
+export const pagos = () => {
require.ensure([], () => {
require('@salix/pagos')
}, "salix.pagos");
diff --git a/@salix/core/src/button/button.bt.js b/@salix/core/src/button/button.bt.js
index bffd70bd1..7312e96b3 100644
--- a/@salix/core/src/button/button.bt.js
+++ b/@salix/core/src/button/button.bt.js
@@ -13,7 +13,7 @@ export function factory() {
return {
template: template,
default: {
- texto: DEFAULT_TEXT,
+ text: DEFAULT_TEXT,
className: DEFAULT_CLASS,
enabled: 'true',
typeName: 'button'
diff --git a/@salix/core/src/button/button.mt.html b/@salix/core/src/button/button.mt.html
index 0ff8edbeb..211963288 100644
--- a/@salix/core/src/button/button.mt.html
+++ b/@salix/core/src/button/button.mt.html
@@ -1,3 +1,3 @@
-