Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template>
- <logged-in-layout>
- <div class="container">
- <div class="row justify-content-center">
- <div class="col-md-8">
- <div class="card">
- <div class="card-header">Example Component</div>
- <div class="card-body">
- This is my main apptesttest
- </div>
- </div>
- </div>
- </div>
- </div>
- </logged-in-layout>
- </template>
- <script>
- import LoggedInLayout from './LoggedInLayout'
- import * as axios from "axios";
- export default {
- name: 'Home',
- components: {
- LoggedInLayout
- },
- mounted() {
- axios({url: 'api/user', method: 'GET'})
- .then(response => {
- console.log(response);
- })
- .catch(error => {
- console.log(error);
- })
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement