Khandaker Toihidul Islam
Front-end Developer
React Js | Javascript | HTML | CSS | Bootstrap | Wordpress | PHP | Mysql

Function declare and data access

HTML

	<div id="app">
		<p> {{ changeTitle() }}</p>
	</div>
<script type="text/javascript">
	new Vue({
		el: "#app",
		data: {
			title : "Hello World"
		},
		methods : {
			changeTitle: function(event){
				return this.title;
			}
		}
	});
</script>

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

You may also like...

Leave a Reply