Js Behaviours
Set of methods representing post form submission behaviour. To accompany @ssdcode/vue-form v2.
Installation
npm install @ssdcode/js-behaviours --save-dev
Usage
import { reload, redirect, confirmClear } from '@ssdcode/js-behaviours'
reload();
redirect('/home');
// from within `vue-form` instance
confirmClear({ message: 'You did it!' }, this);
Tests
You can execute tests by calling
npm run test:unit
Contributions
Contributions are welcome - please make sure all PRs have their associated test.