Help plz. for use ng-if

My Site www.myweb.com/load.json
load.json

 {
   project: [
             {
              title: 'title A',
              show: true,
             },
            {
              title: 'title B',
              show: false,
             },
          ]
 }

I use on file theme.

<ion-view>
  <ion-content>
    
     <div ng-repeat="item in items" class="item">
        <img src="img/star.png" ng-if="item.show">
        {{item.title}}
      </div>
  
</ion-content>
</ion-view>

I have problem item.show is undefined

What’s the link between your json file and the items object? Can you post the code from your controller?

1 Like

Yes, items is Object.

I’m fix already. Thank You