<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.13/vue.js"></script>
<div id="myId" ref="myId">{{ message }}</div>
<button @click="myFunction()">Click Me</button>
message:"Welcome to Canada!"
myFunction: function () {
this.message = this.message.replace("Canada", "France");