diff --git a/@salix/app/src/routes.js b/@salix/app/src/routes.js index 444663d47..4259fcd63 100644 --- a/@salix/app/src/routes.js +++ b/@salix/app/src/routes.js @@ -9,10 +9,7 @@ core.module.config(function($stateProvider, $urlRouterProvider) { $stateProvider .state('index', { url: "/index", - component:'customer.add', - templateProvider: function(){ - console.log("hello"); - }, + template :'', resolve: { loader: function($ocLazyLoad, $q){ return $q((resolve) => { diff --git a/@salix/crud/src/customer/index/index.html b/@salix/crud/src/customer/index/index.html index 8470ef54c..bf833f5d0 100644 --- a/@salix/crud/src/customer/index/index.html +++ b/@salix/crud/src/customer/index/index.html @@ -1 +1 @@ -
index
\ No newline at end of file +
index from component
\ No newline at end of file diff --git a/@salix/crud/src/customer/index/index.js b/@salix/crud/src/customer/index/index.js index 6a33f5473..3f404ca5a 100644 --- a/@salix/crud/src/customer/index/index.js +++ b/@salix/crud/src/customer/index/index.js @@ -1,7 +1,7 @@ import template from './index.html'; import {module} from '../../module'; -export const NAME = 'customer.add'; +export const NAME = 'customerAdd'; export const COMPONENT = { template: template, controller: function() { @@ -10,7 +10,5 @@ export const COMPONENT = { }; module.component(NAME, COMPONENT); -module.factory('hello',function(){return true}); -module.controller('pepito',function(hello){ - console.log(hello); -}); + + diff --git a/index.html b/index.html index 5f37df36e..418528def 100644 --- a/index.html +++ b/index.html @@ -3,25 +3,20 @@ Salix - - -
- {{1+1}} -
- index - add - edit - delete -
-
-
-
- -
- - +
+ +
+ index + add + edit + delete + +
+ + +