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

ngIf depends on a parameter

$
0
0

@IAmos wrote:

Hi

I have a list of items with ngIf like the following

<ion-list>
  <ion-item *ngIf="isItemInThisYear(item.id)">  
...
</ion-list>

Each item can appear several times but only the records from this year will appear. This works.

When clicking an item inside this list, I want to reload this page but this time, the list should only show records of the selected item (regardless the date).

I understand that I should change isItemInThisYear to accommodate either options but how can I send the value/parameter from the clicked item to the whole page so it will reload itself with the relevant parameter?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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