-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Vue.js 2 and Bootstrap 4 Web Development
By :
When we were talking about Vue, we devoted a big section to its components. When we talked about Bootstrap, we also talked about components. Doesn't it ring the same bell? Maybe we could create Vue components out of Bootstrap components? Maybe we can! Actually, we have already done it! Open the code of the first chapter's PleaseIntroduceYourself application. Check what we have inside the components folder. There's something that we called MessageCard.vue. Actually, this is an implemented Vue component for Card Bootstrap's component (https://v4-alpha.getbootstrap.com/components/card/)!
Open the example13-vue-bootstrap-components-started/components folder. Let's use this project as a playground to create the Vue component based on the Bootstrap alert component. Run npm install and run:
cd example13-vue-bootstrap-components-started/components npm install npm run dev
Let's create a Vue component called Alert. This component will contain...