ng-if is always evaluated to true inside ng-repeat

I’m looping on an array of objects and I want to display some stuff depending on the value of a field for each item in the array. For this, I have a ng-repeat iterating through my array, and an ng-if evaluating if my current item value is appropriated.

For some reason the ng-if seems to always be evaluated to true (or not evaluated at all?)


<div data-ng-app='myApp' data-ng-controller='myCtrl'>

    <div ng-repeat="legalRemedy in legalRemedies">
      <div ng-if="legalRemedy.erased === false">
        Only valid stuff here



var app = angular.module('myApp', []);

app.controller('myCtrl', function($scope) {

  $scope.bulletin.legalRemedies = [{
    "erased": true // invalid stuff


Here’s the jsfiddle (no data should be displayed as the erased property is true)

It’s probably pretty dumb but I cannot find why and it’s killing me

Source: AngularJS