Vue Js Basics Components Example




Vue Js Basics Components Example

Hi Guys,

In this tutorial, I will explain you how to create basics components in vue js. I show basics components example in vue js. Components are reusable Vue instances with a name: in this case, <app>. We can use this component as a custom element inside a root Vue instance created with new Vue:


<!DOCTYPE html>



<title>Vue Js Basics Components Example</title>

<link rel="stylesheet" type="text/css" href="">

<script type="text/javascript" src=""></script>


<body class="bg-dark">

<div class="container">

<div class="col-md-6 offset-md-3">

<div class="card mt-5">

<div class="card-header">

<h5 v-bind:class="red">Vue Js Basics Components Example</h5>


<div class="card-body">

<div class="row">

<div class="col-md-12">









<script src=""></script>


Vue.config.devtools = true

var app = new Vue({


data: function () {

return {

count: 0



template: '<button v-on:click="count++" class="btn btn-success">You clicked me {{ count }} times.</button>'





It will help you...

#Bootstrap 4