diff --git a/public/js/app.js b/public/js/app.js
index a91dc0a..731039a 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -33,9 +33,6 @@ Vue.component('nav-bar', {
isActive: false
}
},
- mounted() {
- console.log("ready");
- },
methods: {
toggleState() {
this.isActive = !this.isActive;
diff --git a/public/js/subpedidos-create.js b/public/js/subpedidos-create.js
new file mode 100644
index 0000000..3a03fa6
--- /dev/null
+++ b/public/js/subpedidos-create.js
@@ -0,0 +1,20 @@
+Vue.component('subpedido-select', {
+ data() {
+ return {
+ subpedido: null,
+ subpedidosExistentes: []
+ }
+ },
+ mounted() {
+ console.log("ready");
+ },
+ methods: {
+ onType() {
+ axios.get("/api/subpedidos?nombre=" + this.subpedido).then(response => {
+ console.log(this.subpedido);
+ this.subpedidosExistentes = response.data
+ console.log(this.subpedidosExistentes);
+ });
+ }
+ }
+});
\ No newline at end of file
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index b02f652..9ebfd5b 100644
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -34,5 +34,6 @@
+ @yield('scripts')