This is just to add 1 line in the sweetModalVue component to go to previous vue-router route, I needed that in my code so I forked to remember it. Maybe I'll keep adding things that I need for my current and future projects.
The sweetest library to happen to modals. Now available for Vue.js.
Install SweetModal for Vue.js through npm:
npm install sweet-modal-vue
For examples, refer to the demo page.
SweetModal should work in most major browsers:
- Safari 9+
- Firefox 20+
- Chrome 20+
- Opera 15+
- Microsoft Edge
- Fork the repository
- Run
npm install - Run
npm run devand start hacking. You can reach the example site athttp://localhost:8081. - When you're done, run one final
npm run buildcommand and commit your work for a pull request.
- tabs for indentation, 1 tab = 4 spaces
- camelCase method names
- _camelCase for private methods
- snake_case computed properties
- snake_case data
- kebap-case attributes
- arrow functions if possible
- be fully ES6 compliant!