The ngClick allows you to specify custom behavior when element is clicked.

learn more… | top users | synonyms

1
vote
6answers
136 views

AngularJS - Show and Hide multiple content

In AngularJS, to simply show a field through an a tag, I would do in this way: <div ng-show="aField">Content of aField</div> <a ng-click="aField=true">Show aField</a> ...
0
votes
2answers
750 views

Bind ng-click function in compile with AngularJS

When we try to add an ng-click function (linked to a controller action) onto an element during the compile phase, it is not working. We can get it working if it is in the link function, but as we ...
1
vote
1answer
29 views

What changed with AngularJS 1.2.0-rc.3 that stops ng-click from having the right model value?

We have some code in an ng-click that broke with version 1.2.0-rc.3 because the value in the scope hasn't been updated from the click. Here's a dumbed down version: HTML: <div ng-app="" ...
0
votes
1answer
60 views

AngularJS - $compile is not defined in ng-click

I'm trying to run this command in ng-click: formFieldTemplate='<element fieldvalue="' + $( "#"+name+"Div").attr('fieldvalue') + '" name="' + $( "#"+name+"Div").attr('name') +'[' + dynamic_count + ...
0
votes
1answer
75 views

AngularJS - IE8 - Passing $index to a function within ng-click always return 0 and is executed multiple times

I'm experiencing the following issue. consider this code: <div ng-repeat element in elements> <input type="text"/><a ng-click="deleteTag(inputArray, $index)" ...
0
votes
1answer
242 views

Passing a bound variable to ng-click for dynamic click handler

I have the following dom. <td grid-item ng-repeat='col in columnDefs' ng-click="actions[col.field]"></td> This is wrapped in a directive: angular.module('myApp'). ...
1
vote
0answers
168 views

How to add an AngularJS ng-click option to a javascript generated button?

I'm using bootstrap Modal window for adding a new member for my site, to open it, since I'm using AngularJS, I have to add a ng-click="open()" parameter to a button, but since a plugin I'm using is ...
0
votes
0answers
5 views

Can angular's ngTouch library be used to detect a long click (touch/hold/release in place) event?

My AngularJS app needs to be able to detect both the start and stop of a touch event (without swiping). For example, I need to execute some logic when the touch begins (user presses down their finger ...
0
votes
0answers
32 views

specific ng-click in directive not working

I have a nifty directive that displays a table. There is an icon at the end of the each row (that "appears" on hover) that has an ng-click attached to it. It currently isn't doing anything. I have ...
0
votes
0answers
85 views

Unbind ng-click for dynamic dom element in angular

I have a dynamic div which is conditionally pushed into the dom. I have an ng-click event bound to a child element inside the div which fires myfunc() . Now when that div is removed and re-added to ...