Answer the question
In order to leave comments, you need to log in
How to connect vue.js to yii2?
Greetings! I decided to try Vue.js, but I can't connect vuejs to the yii2 project:
I wrote in AppAsset.php
public $js = [
'js/vue.js',
'js/vuejsscript.js',
];
new Vue({
el: '#app',
data: {
title: 'Hello, I am Vue!';
}
});
<div id="app">
<p>{{ title }}</p>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question