Advertisement
tuomasvaltanen

Untitled

Mar 28th, 2022 (edited)
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. // Vue-perusprojekti
  2.  
  3. // src -> components -> publication -kansioon: PublicationViewAll.vue
  4.  
  5. <script setup>
  6.  
  7. const message = "Tämä on testi"
  8.  
  9. const loggedIn = false
  10.  
  11. </script>
  12.  
  13. <template>
  14. <h1>PublicationViewAll OK!</h1>
  15. <p>{{ message }}</p>
  16.  
  17. <h1 v-if="loggedIn">loggedIn on TRUE!</h1>
  18. <h1 v-else>loggedIn on false... :(</h1>
  19. </template>
  20.  
  21. <style>
  22. body {
  23. margin: 30px;
  24. }
  25. </style>
  26.  
  27.  
  28. // App.vuessa:
  29.  
  30. <script setup>
  31. import PublicationViewAll from './components/publication/PublicationViewAll.vue';
  32.  
  33. </script>
  34.  
  35. <template>
  36. <PublicationViewAll></PublicationViewAll>
  37. </template>
  38.  
  39. <style>
  40. </style>
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement