Asked by: Konrad Uciechowski
I am working in laravel 4.2 and I want to implement Vue.js into my application. When I put some testing code in my blade it only shows error that "Use of undefined constant message - assumed 'message'"I know that laravel read {{message}} like php code but do you know any solution how to add vue.js to my blade? Thanks for help. Here is code
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.4/vue.js"></script>
<script>
new Vue({
el: '#app',
data: {
message: 'hello from Vue.js 2.0'
}
})
</script>
<div id="app">
<p>{{ message }}</p>
</div>
Laravel Development Company, one can create high-quality, creative website by this framework, creating a modern and attractive website that suits the client's . Contact us : +91-9806724185 or Contact@expresstechsoftwares.com
ReplyDelete