I got this fiddle http://jsfiddle.net/L60L3gv9/9/ where when I match an item in the table, it highlights it with :
ng-class="{show: test==x.Country}"
Whereas I'm expecting something like in this fiddle :
http://jsfiddle.net/nmcsr5x9/1/
but with the last fiddle I have to declare other variables in the scope.
Any ideas why the first fiddle is acting like that ?
myVarandmyVar2myVar,myVar2in second is in Scope andtestin first is in scope so what exactly you wanted to know? both are same.