Vue Js Bind Element Attributes Example




Hi Guys,

In this example,I will explain you how to use Bind Element Attributes in vue.js.we are encountering something new. The v-bind attribute you are seeing is called a directive. Directives are prefixed with v- to indicate that they are special attributes provided by Vue, and as you may have guessed, they apply special reactive behavior to the rendered DOM. Here, it is basically saying “keep this element’s title attribute up-to-date with the message property on the Vue instance.”

Here, I will give you full example for simply bind element attributes in vue.js as bellow.


<!DOCTYPE html>



<title>Vue Js Bind Element Attributes 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>Vue Js Bind Element Attributes Example</h5>


<div class="card-body">

<div id="app">

<span v-bind:title="message">

Hi Dev

This is







<script src=""></script>


new Vue({

el: "#app",

data: {

message: 'You loaded this on ' + new Date().toLocaleString()







It Will help you..