2 Answers

0 votes
by

<template>

 <button :class="type"><slot /></button>

</template>

<script>

 export default {

   name: 'Button',

   props: [ 'type' ],

 }

</script>

0 votes
by

Every Vue application starts by creating a new Vue instance with the Vue function:var vm = new Vue({

  // options

})Although not strictly associated with the MVVM Pattern, Vue’s design was partly inspired by it. As a convention, we often use the variable vm (short for ViewModel) to refer to our Vue instance.

When you create a Vue instance, you pass in an options object. The majority of this guide describes how you can use these options to create your desired behavior. For reference, you can also browse the full list of options in the API Reference.

A Vue application consists of a root Vue instance created with new Vue, optionally organized into a tree of nested, reusable components.

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

0 votes
asked Oct 7, 2019 in Vue.JS by Tate
0 votes
asked Oct 9, 2019 in Vue.JS by Indian
0 votes
asked Oct 7, 2019 in Vue.JS by Tate
0 votes
asked Oct 7, 2019 in Vue.JS by Tate
0 votes
asked Oct 1, 2019 in Vue.JS by tiger
...