Answer the question
In order to leave comments, you need to log in
Rendering app.js on the backend?
Such a situation:
Controller
function somePage()
{
return $this->render('twig_tempalte');
}
<html>
<head>
<head>
<body id="vue-app">
<some-component :some-data={% server_variable %}>
</some-component>
<script src="app.js">
</body>
</html>
Answer the question
In order to leave comments, you need to log in
https://habrahabr.ru/post/334952/
well, or remove vue and rewrite the entire front of the project
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question