@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