Angularjs displaying boolean from object

Viewed 342

I have recieved object from server and trying to display its fields in table. All fields are displaying well but boolean is always displaying as "no".

<tr ng-repeat="u in ctrl.users">
      <td><span ng-bind="u.id"></span></td>
      <td><span ng-bind="u.name"></span></td>
      <td><span ng-bind="u.age"></span></td>
      <td><span ng-bind="u.isAdmin ? 'yes' : 'no'"  ></span></td>
 </tr>

I was trying to add filter, but result was the same.

2 Answers
Related