Tuesday, 1 October 2013

Angularjs: If equals array

Angularjs: If equals array

I have an array: [1, 2, 3, 4, 5]
Using ng-show (e.g. ng-show="foo == bar"), how would you determine if a
number equals on of those numbers in the array?

No comments:

Post a Comment