Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. <template>
  2. <div class='container' v-if="id=='exampleparam'"></div>
  3. <!-- This is repeated 9 times, with forms etc. inside each div for functionality -->
  4. </template>
  5. exports default {
  6. data () {
  7. return {
  8. //data stuff
  9. }
  10. },
  11. methods: {
  12. //methods for feature 1
  13.  
  14. //methods for feature 2
  15.  
  16. //etc.....
  17. },
  18.  
  19. created () {
  20. //Authentication stuff that i want to stay in this file
  21.  
  22. switch(this.id){
  23. case 'exampleparam':
  24. this.getAllExampleParamData() //function to get information for this feature from database
  25. break
  26.  
  27. //Repeat cases for each feature
  28. }
  29. }
  30. }
  31. //Styles for the page
  32. <styles></styles>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement