Skip to content

Remove $axios as a dependency #66

Closed
@madebyfabian

Description

@madebyfabian

Hi there!

Really love the plugin, but one thing is very misleading. The docs say that you can send a message like this:

// Inside a component
this.$mail.send({
  from: 'John Doe',
  subject: 'Incredible',
  text: 'This is an incredible test message',
})

but actually I can't, because I don't have the nuxt/axios module installed. Maybe simply change this

inject('mail', {
    send: config => context.app.$axios.$post('/mail/send', config)
});

into window.fetch(...)?

Best,
Fabian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions