File tree Expand file tree Collapse file tree 3 files changed +13
-21
lines changed
Expand file tree Collapse file tree 3 files changed +13
-21
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ require("./bootstrap");
22
33import { createApp } from "vue" ;
44
5- import TestComponent from "./components/TestComponent.vue" ;
65import NewComponent from "./components/NewComponent.vue" ;
76
87createApp ( {
9- components : { TestComponent , NewComponent } ,
8+ components : { NewComponent } ,
109} ) . mount ( "#app" ) ;
Original file line number Diff line number Diff line change 11<template >
2- <div >Testing out New Vue 3 components <br />Greeting: {{ greeting }}</div >
3- <div >Foo: {{ foo }}</div >
2+ <div >Testing out API</div >
43</template >
54
65<script >
76export default {
8- props: [" foo" ],
7+ mounted () {
8+ axios
9+ .get (" /api/products" )
10+ .then ((response ) => {
11+ // commit('updateProducts', response.data);
12+ console .log (" We got a response!" );
13+ console .log (response .data );
14+ })
15+ .catch ((error ) => console .error (error));
16+ },
17+ // props: ["foo"],
918 setup () {
1019 const greeting = " Greetings" ;
1120 return { greeting };
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments