문제

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