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

有帮助吗?

解决方案

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

<div>{{location.path !== '/'? param :""}}</div>
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top