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

learn more… | top users | synonyms

1
vote
1answer
187 views

AngularJS calling a function inside a controller with ng-click

I've got a problem with getting my function inside my controller to work properly. given the following partial: <div ng-controller="KundeDetailCtrl"><table class="table table-hover"> ...
1
vote
1answer
907 views

How to use angularjs ng-click with html5 datalist

I'm working with AngularJS and i want to use the directive ng-click when an element of a datalist (html5) is selected. Here is an example of my actual code: <label>Search</label> ...
1
vote
1answer
646 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
24 views

AngularJS - ng-click not working in custom directive

I have created a custom directive. The controls defined in templates seem to be working fine. But, I need to append another control - image button, to a control defined in templates according to some ...
0
votes
1answer
51 views

How to bind a angular ng-click event on after lnserted HTML

I am developing rails application where angularjs use in it. I am facing one problem which i can't understand. Angularjs works fine in all events but i have one module where new html load after page ...
0
votes
1answer
59 views

Angularjs dynamic ng-click binding?

I am reading a Json file and dynamically creating the elements using angular template.I wanted to bind the event to ng-click which is mentioned in the json file,but it throws exception.Kindly help. ...
0
votes
1answer
37 views

Append HTML in angular js giving errors

I am a newbie in angularjs and was trying to append the data in the view on click event. The following is the code I have written: Html <div id="space-for-buttons"> <input ...
0
votes
1answer
23 views

AngularJS accordion with ng-click giving errors

I am getting the following error Error: [$rootScope:inprog] $apply already in progress when i try to use the angularJS accordian widget. The full error is here. The only difference is that my ...
0
votes
1answer
46 views

ng-repeat, ng-click, directive, and controller interaction

I have this directive snippet: return { scope: {}, restrict: 'E', templateUrl: 'partials/order_table.html', controller: 'OrderController as x', link : ...
0
votes
1answer
105 views

ng-click ng-keypress passing form data not working

Im trying to send data from user input to display on the screen when button click. The problem is that if i click on the button it simply passes to the next value without gathering the information and ...
0
votes
1answer
18 views

Show form using custom directive - AngularJS

I have a button with ng-click function. When I click the button, it should show the form which is coded in a templateUrl using a custom directive. Which function should I use to get the screen ...
0
votes
1answer
151 views

Why ng-click doesn't trigger action while ng-click-active is set though

I've got this really weird issue, coming from nowhere, where the ng-click no longer triggers action. See generated content from the browser as follows. I see the hg-click-active that tells the tap is ...
0
votes
1answer
89 views

angularjs ngrepeat setting array value not working

I have an angularjs page which has an ng-repeat <ul> list of data points. Each <li> has a Delete link (call this Delete 1) which when clicked needs to hide that Delete 1 link and show 2 ...
0
votes
1answer
314 views

Angular JS ng-click not responding only on iPad, works fine on Desktop

I am testing a web app on iPad. Everything works fine on desktop and even on desktop touch (Windows 8 machine with touch enabled), but when I get to iPad, the touch event is not firing at all times. ...
0
votes
1answer
40 views

When clicking the outer div, the inner div's event is also triggered using angular js ng-click

When clicking the outer div, the event of inner div is also triggered. Here I have used <pre> ng-click </pre> of the angular js. <br><br> eg. <div ng-click="outer"> ...
0
votes
1answer
166 views

AngularJS - Issue appending HTML to single item in ng-repeat

THE SITUATION: I am exploring AngularJS by re-building a former project with it. I am using the angularjs-rails gem version 1.2.16. I have a page were I make an API call that returns an array of ...
0
votes
1answer
317 views

angularjs select ng-click event does not expand the control

I am trying to dynamically load the optionset of select tag on ng-click event. clicking on expand arrow fires ng-click event. Since I fetch the data at that point and bind to the select control, ...
2
votes
0answers
74 views

ng-click not working on tablet

I have a ng-click on a div-tag. This works on desktop in every browser. But when I test it on an iPad (ios7) i'ts not working. Strangely enough. When I change the div to an a-tag. It works. But this ...
1
vote
0answers
28 views

AngularJs - Error while using index of ng-repeat in map element

I'm trying to launch an ng-click function inside an ng-repeat but I get a problem, while clicking the element, the function always pick the last occurrence of my loop. To be more precise here's an ...
1
vote
0answers
41 views

Unable to undo changes even after $event.preventDefault - AngularJs

FIDDLE LINK I was prevent ng-click event, but ng-model value will be change after ng-click event complete. How to mantain the old value in ng-model when event is block. This scenario event is ...
1
vote
0answers
13 views

How to transition a ng-view (fade for ex) so that one can't see the page building on iPad?

When the user tp a ng-click which opens a page (ng-view), I can see the construction of the destination page for a fraction of second. How can I fix the "flickering"? I would like to keep the source ...
1
vote
0answers
46 views

AngularJS - JSON and return all results

I'm trying to write a basic search function using AngularJS. I have written a service that finds my JSON file and binds it to a $scope object $scope.SearchResult What i am trying to do it perform a ...
1
vote
0answers
117 views

Disable ng-click on certain conditions of application for all types of element

In my application I've binded several elements with ng-click directive like below <a ng-click="DoSomething()"/> <button ng-click="DoSomethingElse()">xyz</button> <span ...
1
vote
0answers
354 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 ...
1
vote
0answers
287 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
30 views

ng-click is not working in header template of Angular-Kendo dropdownlist

I am trying to create custom MultiSelect Dropdown directive by extending the Dropdown of Angular-Kendo. In Multiselect dropdown, I wanted to give select all/none option in header-template but when I ...
0
votes
0answers
32 views

In Angularjs, finding it difficult to make Select All check box to work even after using ng-change with nested children

I want to check or uncheck based on the events categories and groups for select All check box. With known problem using checkboxes (i.e, to get the status of checkbox after click event), I have used ...
0
votes
0answers
61 views

angularjs:-How to add/Trigger more data on click events

Hi I am a newbie in angularjs and wanted to implement how to display or to make a call depending on a click event. I have the following Html in which I want to display/make a call to the api to get ...
0
votes
0answers
35 views

Click on elements inside a button do not trigger ng-click function in Tizen using AngularJS

I have the following code: <div class="keypad_row" ng-repeat="row in ctrl.keys"> <button id="key_{{key}}" ng-repeat="key in row" ng-click="ctrl.onKeyPressed(key)"> <img ...
0
votes
0answers
78 views

angularjs ajax call wrapped by $scope.$apply function preventing ng-click from being executed

I have and custom validation directive which triggers on change to validate user input: link: function(scope, elem, attrs) { elem.on('change', function() {$scope.$apply(function(){ ...
0
votes
0answers
62 views

AngularJS - ngTouch Error: element.on is not a function

I have just added the mgTouch module into my application. The majority of the project is working as expected, however on page load where i have the following 2 buttons, i see the following error: ...
0
votes
0answers
19 views

Angular Directive not firing animation

I have this code in a directive: app.directive("hideCardView", function ($animate) { return function (scope, element, attrs) { scope.$watch(attrs.hideCardView, function (newVal) { ...
0
votes
0answers
53 views

nvd3, angularJs, CSS, ng-click

please find the plunker at http://plnkr.co/edit/119EaqzLCwimipYldezW?p=preview Initially the charts are nicely aligned as 2x2 in the page. But when I recompile the template in onclickCreate() ...
0
votes
0answers
59 views

AngularJS - ngclick on 2 clicks not working

I am trying to implement a simple ng-click for when a user clicks on a link in the first instance something is shown, in the second instance, the same thing that was shown is now hidden. Here is my ...
0
votes
0answers
79 views

Grid-a-licious disconnects AngularJS ng-click events

I'm using Grid-a-licious (http://suprb.com/apps/gridalicious/) for a layout tool. It works by removing elements from the DOM and adding them back as cards in columns. Inside the cards, I have ...
0
votes
0answers
64 views

Focus style sticking to button with ng-click directive

I have a problem with my buttons staying focused even after I've clicked on them in my angular app. We are running angular 1.2 with angular-ui-router 0.2. The problem seems to occur both on buttons ...
0
votes
0answers
62 views

Link under an ngClickable table row in AngularJS application

I have a table defined in a template like this: <table ng-table="tableParams" show-filter="true" class="table ng-table"> <thead> //... </thead> <tbody> ...
0
votes
0answers
48 views

Looks like angularjs doesn't take interpolated value by the time of the click

In a partial, I've got this local model, as follows: <div ng-init="hotspots = [ {id:'a', name:'litSemenceIdeal', center: {x: 80, y:640}, photos:['1-LitDeSemence']}, {id:'b', ...
0
votes
0answers
123 views

Fire directive, refresh, & pass parameter on ng-click

tldr; I need to fire a custom directive/jQuery plugin on ng-click and pass a parameter to it then reload that page so the parameter's value takes place. So on reload instead of there being 3 results ...
0
votes
0answers
72 views

ng-click doesn't work when html is load from php

Why when i load this button from the php the ng-click doesn't work ?, I'am using angular and I'm loading all this from the angular controller, and when i put the button directly in the view of the ...
0
votes
0answers
140 views

bootstrap-ui datepicker not refreshing

I'm trying to get bootstrap-ui's datepicker to display it's popup with an onclick without a function <input class="form-control" name="dob" type="text" datepicker-popup ...
0
votes
0answers
53 views

AngularJS - how change a class of a specific element from the same function

html: <div id="myid" ng-class="{angularClass:_class}" ng-click="toggleColor();">hello</div> <div id="myid2" ng-class="{angularClass:_class}" ...
0
votes
0answers
217 views

Why does using Angularjs ng-click, to call directives method($event) leads to Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting

I tried to write an custom map directive for an Phonegap + Angular OpenSource project you can find here: https://github.com/MariusSchmidt/Schreibwerkstatt/tree/Bettermap. My problem is, that when I ...
0
votes
0answers
190 views

AngularJS ng-click and video play pause

I have a video tag. <video id="video1" poster="{{video.poster}}" ng-click="video.playIt()" controls> <source src="source.mp4" type="video/mp4"> </video> I want to be able to ...
0
votes
0answers
906 views

AngularJS, data-ng-click not triggering function, and routing only showing up on firefox, not IE or chrome

I am doing tutorials on AngularJS, and I'm having two problems. First, I have code that is showing a page on Firefox, but not on IE or Chrome, and data-ng-click is not triggering any function: here is ...
0
votes
0answers
261 views

ngClick not firing when $swipe is bound

I have an ngClick directive on elements that are also bound to $swipe. The ngClick doesn't fire (it was firing before the $swipe was added). I'm using jQuery mobile combined with AngularJS. ...
0
votes
0answers
243 views

Two ng-repeat, $index not sending the right value in the second ng-click

I have two ng-repeat that follow each other in the same directive: <section slider class="slider"> <nav> <ul> <li ng-repeat="slide in slider[0]" ...
0
votes
0answers
107 views

Change multiple button classes depending on condition

I'm building a multiple-choice question web app. There are 5 options for every question. Before a button is clicked it has a default button class: btn btn-default. At the moment I have it so that when ...
0
votes
0answers
161 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
0answers
167 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 ...