Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. <template>
  2. <logged-in-layout>
  3. <div class="container">
  4. <div class="row justify-content-center">
  5. <div class="col-md-8">
  6. <div class="card">
  7. <div class="card-header">Example Component</div>
  8.  
  9. <div class="card-body">
  10. This is my main apptesttest
  11. </div>
  12. </div>
  13. </div>
  14. </div>
  15. </div>
  16. </logged-in-layout>
  17. </template>
  18.  
  19. <script>
  20. import LoggedInLayout from './LoggedInLayout'
  21. import * as axios from "axios";
  22. export default {
  23. name: 'Home',
  24. components: {
  25. LoggedInLayout
  26. },
  27. mounted() {
  28. axios({url: 'api/user', method: 'GET'})
  29. .then(response => {
  30. console.log(response);
  31. })
  32. .catch(error => {
  33. console.log(error);
  34. })
  35. }
  36. }
  37. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement