merge index
This commit is contained in:
commit
750845b9fe
|
@ -9,10 +9,7 @@ core.module.config(function($stateProvider, $urlRouterProvider) {
|
|||
$stateProvider
|
||||
.state('index', {
|
||||
url: "/index",
|
||||
component:'customer.add',
|
||||
templateProvider: function(){
|
||||
console.log("hello");
|
||||
},
|
||||
template :'<customer-add></customer-add>',
|
||||
resolve: {
|
||||
loader: function($ocLazyLoad, $q){
|
||||
return $q((resolve) => {
|
||||
|
|
|
@ -1 +1 @@
|
|||
<div>index</div>
|
||||
<div>index from component</div>
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
||||
|
|
25
index.html
25
index.html
|
@ -1,22 +1,17 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Salix</title>
|
||||
<title>Salix</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
{{1+1}}
|
||||
<div ui-view></div>
|
||||
<a ui-sref="index">index</a>
|
||||
<a ui-sref="add">add</a>
|
||||
<a ui-sref="edit">edit</a>
|
||||
<a ui-sref="delete">delete</a>
|
||||
<vn-button text="texto del boton"></vn-button><br>
|
||||
<vn-check text="texto del text" ></vn-check><br>
|
||||
<vn-radio text="texto del radio"></vn-radio><br>
|
||||
<vn-textfield text="prueba" type="email"></vn-textfield><br>
|
||||
<vn-label text="hola mundo"></vn-label>
|
||||
</div>
|
||||
<script type="text/javascript" src="build/salix.app.js" selector="#app"></script>
|
||||
<div id="app">
|
||||
|
||||
<div ui-view></div>
|
||||
<a ui-sref="index">index</a>
|
||||
<a ui-sref="add">add</a>
|
||||
<a ui-sref="edit">edit</a>
|
||||
<a ui-sref="delete">delete</a>
|
||||
</div>
|
||||
<script type="text/javascript" src="build/salix.app.js" selector="#app"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue