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

Getting the data from the list to an AlertController

$
0
0

@sam1408 wrote:

Hai friends. I am new to Ionic development and I’m trying to implement an ecommerce app. So I have a list of items wrapped around *ngFor and I implemented ‘onLongClick()’ function which triggers an AlertControllerlist

onLongClick() function:
onLongClick

In the ‘onLongClick()’ when add button is clicked i want to get the 4 input fields plus the details of the item which i’m pressing, to be able to save to storage in the application.

I am having no luck in getting the selected item to the onLongClick function (from there i can use all the required data to be able to save to local storage). I am having trouble figuring out which parameters or data types I should pass in the function. please help.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49526

Trending Articles



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