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

learn more… | top users | synonyms

2
votes
0answers
62 views

Angularjs adding loading spinner on ng-click

How to swap default image with loading.gif on ng-click and then display selected image when its loaded? HTML -partial <img ng-src="currentImg"> <!-- this is the default image --> ...
2
votes
0answers
66 views

ng-click odd behavior when using “var = !var”

<accordion class="nested-accordion"> <accordion-group ng-repeat="item in menu" is-open="item.opened" ng-if="item.children == true && item.grandchild == true"> ...
2
votes
0answers
305 views

In Angular, why does ng-click button fires multiple times?

I have some buttons on in my app that look like this: <ul class="gallery-buttons"> <li><button class="video-gallery" ...
1
vote
0answers
13 views

AngularJS Ng-Click is unresponsive on Samsung devices (please help!)

We have a web app that runs well on all devices except Samsung. We use ng-click and hm-tap directives for input, and they work perfectly on iOS and most android phones but not on Samsung devices. On ...
1
vote
0answers
27 views

Material design lite prevents ng-click if navigator.standalone is true

I have this demo app It works as intended in mobile safari (and desktop) but when I add the page to homescreen I can no longer click (ng-click) the card heading to toggle class to show full contact ...
1
vote
0answers
335 views

Angular-ui-grid : Disable on-click sort for the header cells

I want to disable the sort for on-click event of the header cell and the sort option should only be available in the header drop down menu. I have tried using enableSorting property to disable to sort ...
1
vote
0answers
193 views

AngularJS multiple elements with same callback ng-click

I have multiple elements that display an icon with a its' respective label. Upon click of any of the icons, I would like to display the next step. I can simply attach the ng-click event handler to ...
1
vote
0answers
87 views

How to add ng-click directive to dom element in java script

I have a Button which is being included in the page via jsp include . <button class="btnGreyInactive" name="btn_createNew" id="createNewBtn" style="display: inline-block;" ...
1
vote
0answers
183 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
1k 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
15 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
112 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
316 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 ...
1
vote
0answers
316 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
21 views

All ng-clicks inside modal stop working after awhile

I have a peculiar problem that I'm having a tough time making sense of. I have a modal that opens when a user wants to attach media to a post on my site. The modal itself is way too complex to ...
0
votes
0answers
41 views

Angularjs, select id from dropdown and send it with callback function

I have a form wizard which is has some dropdowns the user needs to select before submiting. The user should select from the dropdown and the id should send to the server. HTML ...
0
votes
0answers
49 views

AngularJS an issue with updating a DOM element containing an ng-click directive

I have been working on my 1st Angular website for nearly 2 weeks now, and have been trying to figure out the best way swap between 'Publish and Un-Publish' buttons on a list I generate with ng-repeat. ...
0
votes
0answers
59 views

Clear Button ng-click not triggering event

I have the following code and ng-click is not working for the clear button. It just closes the dropdown menu. What might be the reason? <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 ...
0
votes
0answers
125 views

Cordova, Barcode scanner opens twice in Android

The problem does not appear using the simulator CordovaSim or Ionic View app, but only when the project is build for Android. When the problem appear the barcode reader need to read the DATA_MATRIX ...
0
votes
0answers
18 views

trying to add click inside a re-usable directive to a element that may have different classes be different element and may have different text

so here is the desire: I need to add a directive to any html element and pass it an id. This id is then used to populate a method that submits a form that has that id on the page. Some devs have ...
0
votes
0answers
34 views

How to navigate in multi pages Web App with AngularJs

I've a simple Web App with 2 html pages, see below : index.html <div ng-controller="ThirdCtrl"> <h2> {{titre}}</h2> <form> <input type="text" ...
0
votes
0answers
75 views

ui-router not redirect to other page $state.go

I have an initial state as follows: var mainState = { name: 'main', url: '/', abstract: true, authenticate: false, templateUrl: 'app/main/main.html', ...
0
votes
0answers
42 views

Pagination in angular: How to change var values on ng-click (updating on time)

I'm trying to create a pagination as you can see in the code below: <div class="box-content"> <table class="table table-condensed" ng-init="startNit = 0; limitNit = 10"> ...
0
votes
0answers
90 views

Angular js ng-include ng-click bug

i use angular js and have problem with http://apparently.me.uk/angularjs-view-specific-sidebars/ when i replace block, in replace block angular ignore ng-click simple example here (click on text with ...
0
votes
0answers
19 views

AngularJs Route transitions with ngAnimate not working

I have looked at many tutorials on route transitions using ngAnimate. I think I have everything set up perfectly but i do not see the transitional classes ng-enter and ng-leave... Download this and ...
0
votes
0answers
31 views

How to use ng-click with ngGrid

I use ngGrid for the real time data. It works without any problem and displays all the data in a meaningful way. Now, I want to have a 2nd table (or nggrid), which will be opened, when I click one of ...
0
votes
0answers
59 views

Wrong ng-click triggered when nested

I have a problem with nested ng-clicks which is somehow related to: Two nested click events with angularjs and Nested ng-click's in IE9. I have the following html structure while the functions ...
0
votes
0answers
208 views

Angular ng-click not working on IE 11 when inside of a wrapper div

I have a grid, which is generated by ng-repeat. In the generated grid elements, there is an ng-click directive, which doesn't trigger on IE11, but works fine on Chrome and Firefox. What I also found ...
0
votes
0answers
76 views

ng-repeat and ng-click in the same tag

I have just looked for the same problem but I didn't find a solution. I tried some solutions and examples but nothing worked. I have this HTML code in AngularJS: <h2 class="text-center ...
0
votes
0answers
111 views

ng-click to ng-scroll for pagination in Angular JS

Here is a Plunker Pagination in Angular where pagination is done on the basis of clicking next page or previous or numbers using angular event "ng-click" which calls function ...
0
votes
0answers
32 views

How to change the animation on change value angularjs

I need to put an animation on change value on angularjs application. Basecally, i want to slide out left the old value and the new value has to display with a slide in left. <div ...
0
votes
0answers
101 views

AngularJS Ng-Click directive not triggering

I have a simple code segment that was meant to work along with AngularJS, but it simply does not. <form ...> ... <div class="fieldcontain option-handler" style="display: none;" ...
0
votes
0answers
27 views

Angular and Localeapp: using ng-click in a translation

I have some links within Localeapp translations where I'd like to inject ng-click like so: <a ng-click="myMethod()"> Or in any other way that makes sense. This method would subsequently open ...
0
votes
0answers
92 views

Nested ng-click's in IE9

I need to have a ng-click-event nested into another ng-click-event. This doesn't seem to be a problem in the Chrome client I am able to use here at work, but the standard browser is IE9. The problem ...
0
votes
0answers
111 views

Angular JS not rendering in ng-click

I'm building a MEAN stack app for tracking courses, grades, and assignments. I'm trying to generate delete buttons for courses in my index view. All the expressions render correctly except for ...
0
votes
0answers
157 views

ng-click is not working

I'm stuck with this problem for 2 days and I couldn't locate its core so any help on the matter is really appreciated. I was creating a form that was inline editable with xeditable and the ...
0
votes
0answers
92 views

ng-touch not working for long press

Using ng-touch in my app works except for with long clicks. If you hold the link down for a half a second or so, on release you get the same 300ms delay and quick flash as with a regular ng-click. Any ...
0
votes
0answers
34 views

How can I differentiate ng-click from ng-mouseup for copy action?

In my grid, when any "row" is selected, new page will be opened. But if any cell selected for copying any text, new page should not be opened. How can I differentiate these two actions??
0
votes
0answers
364 views

Dynamic button with DataTable plugin in BootStrap/AngularJS framework

I am just getting into the AngularJS world (and loving it). Along with that, I am also working with a (purchased) Bootstrap design package. Within that package are table layouts that utilize the ...
0
votes
0answers
73 views

ng-click function not recognzing changes inside table data

i created a table with one editable column. i want users to be able to save changes in this column cells, but though the call executes and sends the correct data before the change, it won't recognize ...
0
votes
0answers
72 views

AngularJS second click in nested ngRepeat sends same data as first

I have a nested object with calendar events which looks like this: { 'january': { 1: {moment: 'Birthday', date: '1955/01/21'}, 2: {moment: 'Wedding', data: '1985/01/28'} }, 'march': { ...
0
votes
0answers
140 views

ng-click does not work on my directive of a slider

I use the structure provided by the yeoman with angular-generator. The ng-click does not work in my directive, of a slider show, when I put the html directly in main.html (It only works when I put in ...
0
votes
0answers
265 views

AngularJS - passing a value to a function for the second time returns undefined

I'm new to Angular and on my way to learn while bulding a website I've stopped with a really stupid moment. I have a function inside a controller that is supposed to be called on ng-click event, I'm ...
0
votes
0answers
139 views

Sharing data between controllers in AngularJS (PubSub/Event bus example)

I have a page with a list of product. I have a li with my directive that it does is that when I click on a link it is inside of the li and compiled a template inside of the li and show my template. ...
0
votes
0answers
71 views

How I can make a preview image with AngularJS?

I have a page with a list of images, price and description of products. And I need to do a preview of this product when make click. here I put example of what I have to do. Example of I need to do ...
0
votes
0answers
223 views

Angular. Load and update modal content based on ID

I need to load a gallery with a bunch of vimeo iframes. The problem is, if I will try to load all these iframes, the page loading time will be unbearable. So first I am just loading a gallery with ...
0
votes
0answers
113 views

ng-click does not work after filtering or adding new item in table

I have a template like this. All rows have command column to edit, delete and one custom operation. There is a new button on top of the page. Adding and editing operations are done in modal. (No ...
0
votes
0answers
260 views

ng-click inside of dynamically build template is not getting fired

The ng-click in the following (shortened) code within the dynamically loaded template is not getting fired, while the ng-click inside of the default template in the last lines is! What can I do to get ...
0
votes
0answers
300 views

Angular JS facebook like and ng-click

please am looking for a way to bind facebook like to my angularjs app, i already implemented easy app angularjs module, and everything is preety working fine.. how do i bind my ng click to the ...
0
votes
0answers
34 views

ngGrid ignores my ng-click?

I'm using ngGrid 2.0.12. Cannot change that yet because of other various things hinging on it. I have two simple ngGrids, like the ones shown in this plunkr: ...