Pass data into Ionic ActionSheet

@ turbobasti this worked for me THANK YOU

for (var i = 0; i < array.length; i++){
	actionSheet.addButton({
		text: title,
		handler: this.myFunction.bind(this, i)
	})
}

myFunction(i){
do something ...
}