opitzconsulting / jquery-mobile-angular-adapter

jquery mobile angular adapter
MIT License
517 stars 114 forks source link

ngm-vclick not firing when a is inside of a listview #109

Closed nvahalik closed 11 years ago

nvahalik commented 11 years ago

See: http://jsfiddle.net/nvahalik/SeVJA/

I'm trying to use ngm-vclick as part of a list view, but the event doesn't fire. After RTFM, this doesn't appear to be completely unsupported... is there a better way or is this a bug?

tbosch commented 11 years ago

Hi, well, the problem were the double curly braces within the ngm-click. You can refer to angular variables directly, e.g. <a ngm-vclick="doSomething(device.id);"> instead of your <a ngm-vclick="doSomething({{device.id}});">

Here is an updated fiddle: http://jsfiddle.net/SeVJA/2/

Closing this... Tobias

nvahalik commented 11 years ago

Paris_Tuileries_Garden_Facepalm_statue

tbosch commented 11 years ago

+1!