Textarea v-model initial value with VueJS and Laravel
问题 I want to display the username as the default textarea value for markdown editor using blade syntax. <textarea v-model="message"> {{ $detailsFromLaravelContoller }} </textarea> <div v-html="compiledMarkdown"></div> But I am using v-model component for the textarea which requires to declare message with an empty value like this window.onload = function() { var editor = new Vue({ el: '#editor', data: { message: '', compiledMarkdown: marked('', { sanitize: true }), }, watch: { markdown: function