Installation
You can install bootstrap-validate with your favourite package manager and CDN.
Via Package Managers
As stated above you can easily install bootstrap-validate using your favourite package manager. However we do recommend installing with yarn.
yarn
yarn add bootstrap-validate
npm
npm i bootstrap-validate
bower
bower install bootstrap-validate
Via CDN
RawGit makes including bootstrap-validate in your project super easy, providing a CDNallowing you to use a specific version of bootstrap-validate.
For the current version, you can just include
<script src="https://cdn.rawgit.com/PascaleBeier/bootstrap-validate/1.0.10/dist/bootstrap-validate.js"></script>
Get the Source
You can grab the full Source Code including build files and documentation from our GitHub Repository.
Usage with Webpack etc.
bootstrap-validate can be used in ES6+ Environments as well. However, importingthe library has a small quirk.
You need to
import * from 'bootstrap-validate' as bootstrapValidate;
window.bootstrapValidate = bootstrapValidate;
to export the bootstrapValidate function to your resulting bundle.
Usage →