Frage

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 }} ?

War es hilfreich?

Lösung

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

<div>{{location.path !== '/'? param :""}}</div>
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top