Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 141337

Angularjs dynamic ng-if data binding in span

$
0
0

I have this Angular expression in my view:

<span ng-if="{{list.StoreList ? (list.StoreList.length ' Products)' : '(0 Products)'}}"> </span>

So if I have any items in the StoreList then I'll display the count, otherwise I'll just show 0 products.

I'm getting unexpected expecting error from Angularjs.

How can I solve this?


Viewing all articles
Browse latest Browse all 141337

Trending Articles