Tagged Questions
0
votes
1answer
13 views
Attempting to pass an expression as an argument to a directive. Being taken literally instead of value
I'm trying to pass the value from an that is displayed through an ng-repeat into a function in my controller. The value displays properly in the HTML but when I get over to the function it displays ...
0
votes
2answers
52 views
Triggering a function with ngClick within ngTransclude
I have an unordered list loaded with four items from an array while using ngRepeat. The anchor tag in the list item has a function in the ngClick attribute that fires up a message. The function call ...
2
votes
1answer
112 views
Handling ng-click and ng-dblclick on the same element with AngularJS
I was looking for both single and double-click event handling with AngularJS, since AngularJS always fires only the ng-click event even if there is ng-dblclick directive set for our element.
Here is ...
0
votes
0answers
48 views
ng-click="show… not working in directive
For the life of me I can't get ng-click="show''" to work in the directive correctly.
HTML
<sortable ng-controller="SortableCtrl"></sortable>
<div ...
0
votes
3answers
149 views
What element raised ng-click in custom directive ng-repeater
I have a repeater inside of a directive that spits out table rows.
When a user clicks on a row I want to highlight that row.
I have something that works, I was just wondering if there was a better ...
3
votes
1answer
85 views
ngClick does not fire in recursive template
I developed a classic recursive menu and it build itself fine. Problem is that ngClick is never fired from the elements of the recursive directive.
I know it's a problem of scope and I tried many ...
0
votes
2answers
164 views
ngClick on anchor tags causing problems in Angular
I've got ngClick directives on the anchors tags inside my main navigation, to make the menu "disappear" off canvas after clicking it:
<a href="/#/profile" ng-click="showNav = false">
It's ...
0
votes
0answers
170 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 ...
0
votes
1answer
326 views
Injecting a HTML template to DOM on click the clean way (Create an instance of a class)?
In my AngularJS project I have something like this (it's a dropdown menu with customer names. With a click on one of the names a Scrum Card should appear with the customer's names inserted in the ...
2
votes
1answer
1k views
AngularJS - how to override directive ngClick
I want to override directive ng-click: to some make some $rootscope changes before each execution of ng-click. How to do it?
3
votes
1answer
369 views
Decorating the ng-click directive in AngularJs
I've been looking into modifying the AngularJS ng-click directive to add some additional features. I have a few different ideas of what to use it for, but a simple one is to add Google Analytics ...
1
vote
2answers
4k views
Angular Directive ng-click Not Working
Plunker
I have an external controller that contains a directive inside of its view. The directive gets a list of process points and generates links where you can select each one. It correctly sets ...
0
votes
2answers
873 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 ...