nandi95 / vue-toastify

🔥 Simple, extendable, dependency free notification plugin. 🔥
https://vue-toastify.netlify.com/
MIT License
227 stars 12 forks source link

Can I use it inside a method? #3

Closed marufmax closed 5 years ago

marufmax commented 5 years ago

Hi, Thanks for this library.

Can I use it without <vue-toastify :your-props="here"></vue-toastify> this component?

I want to show notification inside a method and I don't want to mess around with template.

like simply: this.$toastify.success('Weird success text');

something like this?

nandi95 commented 5 years ago

You have to include the component but you don't have to pass the props. This is currently a single component not a plugin.

nandi95 commented 5 years ago

@marufmax This is a great idea, I'll make sure to add this when moving to release 1.0