1.0.1 • Published 2 years ago
vue-simple-alert-fixed v1.0.1
important
This is a fork from constkhi/vue-simple-alert, there's a small collision between Nuxtjs's Firebase "$fire" and this repository's "$fire" i have only fixed that collision, all credit still goes to original creator.
refer to the original Repository for complete documentation
Install
npm install --save vue-simple-alert-fixed
install the plugin
import VueSimpleAlertFixed from "vue-simple-alert-fixed";
Vue.use(VueSimpleAlertFixed);
usage
You can use sweetalert2's fire() method through \$fireAlert(). For detailed usage, refer to sweetalert2 documentation.
// in any component
this.$fireAlert({
title: "Title",
text: "text",
type: "success",
timer: 3000
}).then(r => {
console.log(r.value);
});