M
M
mel632020-05-28 13:00:32
Vue.js
mel63, 2020-05-28 13:00:32

Using javascript inside VUE?

Hello.
I got the layout using Vue
In the process of stretching on Bitrix, components are inevitably used in which js or styles inside the template
As a result, I get

[Vue warn]: Error compiling template:
Templates should only be responsible for mapping the state to the UI

It seems that the functionality works, but how to remove errors from the console, or rather, how do I understand the warnings?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mel63, 2020-05-28
@mel63

Solved the problem like this
removed everything <style>inside the template
replaced all text/javascript with application/javascript
Solved, thanks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question