Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49313

Call function without a event?

$
0
0

@antomanzur wrote:

Hello, i need to call a function without an event. In each item of the ngFor i need to call function “Detalles” with the param “Item”. How i can do this?.Thanks for the time

<ion-list-header *ngFor="let item of departamento"  >{{ item.nombre_departamento }} ({{ item.capacidad }})
      <ion-item (event?)="Detalles(item)" *ngFor="let detalle of detalles">
          {{ detalle.FECHA}}
      </ion-item>
    </ion-list-header>

Posts: 6

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 49313

Trending Articles



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