Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template>
- <div>
- <h1>Recharge mobile phone</h1>
- <PaymentForm @submit="onSubmit" />
- </div>
- </template>
- <script>
- import PaymentForm from './PaymentForm.vue'
- export default {
- name: 'PaymentPage',
- components: {
- PaymentForm
- },
- methods: {
- onSubmit (data) {
- // ... here we can make an API call
- }
- }
- }
- </script>
Add Comment
Please, Sign In to add comment