E
E
Everal2021-03-20 17:46:24
Vue.js
Everal, 2021-03-20 17:46:24

How to create a variable in a template?

In the template, you need to prepare a link in a loop for the filter, but the result of the variable is displayed in html, how to avoid this?

{{otherFilter = $route.params.params ? ";"+$route.params.params : ''}}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2021-03-20
@yarkov Vue.js

but the result of the variable is output in html how to avoid it?

Do not display in the template?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question