Pass data to ionic Action sheet


#1

I have a user list based on the tabs demo.

If i click on a user. i open a Action sheet with two option, call him or send a SMS.
How can i transpose the name and phone number to the action inside action sheet to call him or send sms and get the right phone number and name to my next action?

The list is created from a json file from Google Contact.
The action sheet is created with javascript, i can pass data to it but how to use it?


#2

Ok, i did find out.

I did a ng-click in the list with a function inside and retrieve the item part:
$scope.showActionsheet = function (item)
var name = item.name;