<div id="app">
		<p> {{ changeTitle() }} - <a v-bind:href="link"> Vue Tutorials</a></p>
	</div>
<script type="text/javascript">
	new Vue({
		el: "#app",
		data: {
			title : "Hello World",
			link : "http://vue.toihid.com/"
		},
		methods : {
			changeTitle: function(event){
				return this.title;
			}
		}
	});
</script>

Demo http://vue.toihid.com/section-2/reactive_properties.php

According to the above codes, v-bind get properties from vue and no need to use {{ }}.

By toihid

Leave a Reply