[Vuejs]-Trouble implementing vue js with Laravel

0👍

This should be the Problem

value="{{seo_description }}" 

You are not escaping it for vue.js. You should either do

value="@{{seo_description}}" 

or

:value="seo_description"

AND you really need to add seo_description to your data. Always init the default data – even if the value is empty.

However you do not need this at all actually. Since you bound the value to the model already.

Last remark: I think you should always wrap your vue.js outputs like

<p>@{{ maxlength-keyword.length }} characters remaining.</p>

into elements

<p><span>@{{ maxlength-keyword.length }}</span> characters remaining.</p>

0👍

in laravel 5.3 vue js has been put into.default together with jquery.

try to remove app.js or main.js from your main layout or master layout or whatever layout and that time you can use vue instance per blade now.

make sure to include first vue js dependency from home layout

Leave a comment