Retrieve Selected Row on Ionic Grid


I placed a series of texts on an ionic grid, retrieving these texts from a list via directive "ng-repeat" (item in list). Each row of this grid also contains a button. I want to click this button and get the row number where that button is located or the text that was placed on that line (placed there via ng-repeat).
That is: on row 1 I have text "Text 1 " that was placed by ng-repeat , in row 2 and 3 the same, etc. I'd like to click button on, for instance, row 3 and get the row number or the text "Text 3".
I tried this with the ng-selected directive but it did not work. Any idea?

Thanks a lot.
1 person has
this question