How can I combine a vuejs condition with a vuejs variable and an elixir variable?
<div v-if="vuevar || <%= @conn.assigns.elixirvar %>">
Does that
conn.assigns.elixirvar
returntrue
orfalse
?It's a string actually.
If it is a string, you should quote it:
<div v-if="vuevar || '<%= @conn.assigns.elixirvar %>'">
Othwerwise it will be printed as an identifier.