Filippo oretti
Filippo oretti

Reputation: 49817

Angular js - print views data conditionally

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

Upvotes: 1

Views: 1764

Answers (1)

Kavitha K Gowd
Kavitha K Gowd

Reputation: 527

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

<div>{{location.path !== '/'? param :""}}</div>

Upvotes: 3

Related Questions