vue-simple-alert-fixed
v1.0.1
Published
Simple alert(), confirm(), prompt() for Vue.js, using sweetalert2.
Downloads
1
Maintainers
Readme
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);
});