No jquery, Bootstrap.js, or no third-party plug-ins are required.
This repository contains a set of native Vue.js components based on Bootstrap ' s markup and CSS. As a result no dependency on the JQuery or Bootstrap ' s JavaScript is required. The only required dependencies are:
Vue.js (Required ^0.12, test with 0.12.10).
Bootstrap CSS (Required 3.x.x, test with 3.3.5). Vuestrap doesn ' t depend on a very precise version of Bootstrap. Just pull the latest.
Commonjs
$ npm Install vue-strap
var alert = require (' Vue-strap/src/alert ');
or
var alert = require (' Vue-strap '). Alert;
New Vue ({
components: {
' alert ': Alert
}
})
ES6
$ NPM Install vue-strap
import alert from ' Vue-strap/src/alert '
//or
import {alert} from ' Vue-strap '
NE W Vue ({
components: {
alert
} '
})
Amd
$ bower Install Vue-strap
define ([' vue-strap '], function (vuestrap) {var alert = Vuestrap.alert;..});
This article has been organized into the "Vue.js front-end component Learning course", welcome to learn to read.
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.