Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

How to check a data value for looping exist before create table header?

$
0
0

@anespa wrote:

Dear friends,

I have a form and it’s relevant search value below it. I get the result and can show it using “ngFor”. But my doubt is how to check that looped variable exist to show the above “heading” and “header” part.

<h2>Search results</h2>
    <div class="row header">
            <div class="col">#</div>
            <div class="col">Owner</div>
            <div class="col">Door No</div>
            <div class="col"></div>
          </div>
          <div class="row" *ngFor="let searchdata of result; let i = index">
            <div class="col">{{i + 1}}</div>
            <div class="col">{{searchdata.chvownerEng}} </div>
            <div class="col">{{searchdata.intWardNo}}/{{searchdata.intDoorNO}}/{{searchdata.chvDoorNOSub}}</div>
            <div class="col"><button [navPush]="payPage" [navParams]="params">Show</button></div>
          </div>

So without data that HEADING and header fields show…

How to remove it ? please advise

Thanks

Anes

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>