Pregunta

How can i get this:

<div>{{ if(location.path !== '/'){ param }}}</div>

How can i print my view data conditionally or anyway run conditions into {{ param }} ?

¿Fue útil?

Solución

You have to write expressions to be evaluated inside {{}}.

<div>{{location.path !== '/'? param :""}}</div>
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top