Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template>
- <div class='container' v-if="id=='exampleparam'"></div>
- <!-- This is repeated 9 times, with forms etc. inside each div for functionality -->
- </template>
- exports default {
- data () {
- return {
- //data stuff
- }
- },
- methods: {
- //methods for feature 1
- //methods for feature 2
- //etc.....
- },
- created () {
- //Authentication stuff that i want to stay in this file
- switch(this.id){
- case 'exampleparam':
- this.getAllExampleParamData() //function to get information for this feature from database
- break
- //Repeat cases for each feature
- }
- }
- }
- //Styles for the page
- <styles></styles>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement