Personally, I just do stuff like ng-repeat="item in itemlist"
ng-click="rowClicked(item)", which will call rowClicked with the particular
item from ng-repeat, which is what I think you're asking for.

e

On Sat Nov 01 2014 at 11:42:46 PM Justin Walsh <[email protected]>
wrote:

> Apologies, I actually meant:
>
> How about using the target of the $event?
>>
>
> The $event is just a handle on the DOM event
> <https://developer.mozilla.org/en/docs/Web/API/Event>.  There is a wealth
> of information available on this object, including information on the
> target.
>
> Regards
> Justin
>
> On Saturday, November 1, 2014 10:49:04 AM UTC+2, mark goldin wrote:
>
>> Using that approach can you get a width of a clicked object or any other
>> property?
>>
>> Thanks
>>
> On Sat, Nov 1, 2014 at 12:32 AM, Justin Walsh <[email protected]>
>> wrote:
>>
> Hi Mark,
>>>
>>> How about using the $target of the event?
>>>
>>> For example: http://plnkr.co/edit/TJlbROcW8BISpD5LubkZ?p=preview
>>>
>>> Regards
>>> Justin
>>>
>>> On Friday, October 31, 2014 9:58:19 PM UTC+2, mark goldin wrote:
>>>>
>>>> I m trying to implement a click and have code acting upon.
>>>> My question is - how can I access the clicked object in my click
>>>> handler? So far all I am getting is an html element or something. But I
>>>> need a reference to an object. Like if a grid was clicked then I need to
>>>> access its selected value and so forth.
>>>>
>>>>
>>>> Thanks for help.
>>>>
>>>  --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "AngularJS" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/
>>> topic/angular/N02VQDzVGGM/unsubscribe.
>>>
>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>> To post to this group, send email to [email protected].
>>
>>
>>> Visit this group at http://groups.google.com/group/angular.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to