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

learn more… | top users | synonyms

0
votes
0answers
15 views

ngClick not working on ngRepeat

I have an iterating table of items. Right now, when you click an item, nothing is happening. After some testing, I see the ngClick directive is not firing. For what its worth, all my other Angular on ...
0
votes
0answers
14 views

ngDialog is not working

How to call ngDialog model form when user clicks on a HyperLink. Below is my angularJs Code. SignupDialog is not working? <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <...
0
votes
2answers
30 views

How to change the class using click and hovering

View: <a ng-repeat="control in controls | filter:name" ng-href="#{{control.id}}" ng-click="restart(control.name)" ng-class="{active: control.name == selected}">{{control.name}} controller- ...
1
vote
3answers
44 views

ng-click not working, trying to replace an image on click

I'm new of Angular JS, Well I'm trying to replace an image on click. i.e.,One Click on Img1 i would replace the previous image by Img1 and so on. To achieve this I'm using ng-click. The thing is even ...
2
votes
1answer
21 views

ng-click doesn't invoke function in md-dialog

I have problem with ng-click in md-dialog. Here is my HTML code dialog.html <md-dialog-content layout="column"> <div class="md-dialog-content"> <md-input-container> ...
0
votes
1answer
18 views

Ng-click not up to date?

I have a select of users and based on the selected user it shows certain buttons. The button their titles and id's are in objects that come from ng-repeat. When clicked on a button it passes an id to ...
1
vote
4answers
67 views

Angular: ng-click parameter is undefined, which is inside ng-repeat

I came across a problem when I try to pass param from ng-click to my function. I couldn't get my param. I am a new learner of Angular.js. So I think I may lack of basic understanding for ng-click ...
0
votes
2answers
25 views

JavaScript Button link prevent scroll on click

I have an Html link that I want to use as a button: <a href="javascript:void(0)" class="btn btn-link" title="Click to copy" ng-click="copyToClipboard(item, $event)">{{ "{" + item.campaignGuid + ...
0
votes
0answers
62 views

Angular date filter on ng-click

I want to filter the records by the reply time monthly. If I click a date on the left menu. The table should display the records only in that specific month. I have a search filter also. The ...
-1
votes
1answer
30 views

Angular: Can't use value of ng-repeat in ng-click

I want to have a div show up when clicked on the title, to do this i wanted to pass the value of the ng-repeat in the ng-click. But for some reason it doesn't get it through. Here's the code of my ...
0
votes
4answers
44 views

how to use dynamic variables on ng-click angular?

Well, I don't know how I can use "dynamic" variables on ng-click attribute. In this case, i want update variable from reference in ng-click ng-if etc. My idea is update variables from reference and ...
0
votes
1answer
24 views

ng-click triggering twice in iOs divice only

I am using ng-click for div which will filter the data. I am using collection-repeat to show large data. When the data is less, the click only triggers once, but when the data is huge, the click ...
0
votes
1answer
26 views

overriding parent ng-click in child element

This is a pretty simple question. I have a list with icons on each list element, when I click the actual list element I want to call one function, when I click the icon I want to call another function....
0
votes
0answers
29 views

Angular ng-click with array.prototype.map

I am trying to use an array.map function in my ng-click expression: addTracksToPlaylist(album.tracks.items.map(function(o){return o.id})); but I am getting a syntax error Token '{' is unexpected, ...
0
votes
1answer
40 views

I dont understand why my code wont works

Hi all i'm approaching to AngularJS, it seemed to be easy, but i understood that it isn't. I want to do a simple login without authentication, just a login that you insert username and passowrd, ...
1
vote
2answers
40 views

Angular js: Ng-switch is not updating after ng-click

In my original code, I first check if a user can flag a discussion, if they can I have the ng-switch where if they flag it they will see success message appear: <div ng-if="canFlag(discussion)">...
0
votes
1answer
36 views

angular ng-click handler is not called upon tapping on focused input on IPAD

I encountered the following problem with IPAD. I have an input element with ng-click='someHandler()' When input is blurred and i tap on it someHandler is called and input becomes focused as ...
0
votes
0answers
31 views

jQuery click working before ng-click

This: $("ul") .mousedown(function() { mouseCode = 1; }) happens before this: ng-click="setShown(card)" Is there any way to have the ng-click run first? I want to avoid using ...
0
votes
1answer
20 views

ng-model versus getElementById

I am reading the book "Pro AngularJS" by Adam Freeman, Apress. He creates an app that is a to-do list and you can add your own things on the list. In the part "Responding to User Interaction", page ...
0
votes
1answer
25 views

How can I move the ng-repeat filter into the controller and apply ‘active’ class when user clicks?

I have a tabbed slider where can switch the view of the slider by selecting the tab, which is filtering the ng-repeat by property. How can I move the filter into the controller and apply ‘active’ ...
0
votes
1answer
22 views

Error while passing an angular argument in a function call inside ng-click directive

I am a rookie in AngularJS. I am building a corporate dashboard. I have two views - Dashboard and Profiles. In Profiles I have multiple profile details which I am rendering using ng-repeat and the ...
0
votes
3answers
39 views

AngularJS ng-click does not work

Here's my code (i already added angular): <body ng-app="clickExample" ng-controller="ExampleController" ng-init="choice = 1"> <script> var app = angular.module("clickExample", []);...
0
votes
0answers
38 views

AngularJS: How to use ng-class input selected with nested ng-repeat cycles so that individual element is selected?

What I'm trying to do, is when the third (minute) array gets activated, for only one button to have clicked class added if clicked. So if another minute input button gets clicked, the previous button ...
2
votes
3answers
43 views

How can I disable an ng-click after a click inside a ng-if ng-switch statement?

I have a flag button that when a user clicks on, flags the discussion, and afterwards the flag button is replaced with text 'successfully flagged'. Currently I am having trouble from disabling ng-...
0
votes
1answer
38 views

AngularJS: How to pass in multiple INT values as string from ng-click?

Say for example I have an element like this: <input type="button" id="model{{id}}{{Value}}" ng-click="myFunction( )"> if id was 178 and Value was 123, how can I make the ng-click above ...
0
votes
1answer
43 views

AngularJS - Loop through several json object arrays

I want to loop through several json object arrays with one ng-click. Example - Please see following Plunker: https://plnkr.co/edit/7P4Oha5OdfTC5wndUebE?p=preview When I click now on one of my blue ...
1
vote
1answer
25 views

Why is ng-click only working with a function, not an assignment, in this directive?

I am trying to create a table based on an array of objects, sortable by clicking the headers. I have a question about this implementation of the sort feature. let myDirectiveTemplate = ` <table ...
0
votes
1answer
36 views

ng-click is not working in mobile screen

I have a pop-up in my web version of the application which works fine. <a href="" ng-click="backToCareTemp()"> <i class="icon-arrow-left"></i> <span>Back</span></a>...
0
votes
2answers
54 views

AngularJS - Ng click inside ng repeat for all items

I have following AngularJS Script: <div ng-app='app' ng-controller="myctrl"> <ul ng-repeat="module in data.data"> <li >{{module.name}}<br><span ng-click="module....
1
vote
1answer
105 views

Angular ng-click works only once

I need to switch between to div's. Div class="wrapper" must be visible by default. Div class="form" must be shown after admin approve. The problem is when i click on <a ng-click="toggle()"> it ...
0
votes
1answer
26 views

Filter in ng-repeat is breaking selectable options in table

I have a table that displays selectable information. There are parent rows and child rows. I want the parent rows to be selectable if they have no children, otherwise only the child rows should be ...
0
votes
3answers
31 views

In which sequence or manner multiple functions is called if i call them inside ng-click?

I have this code. <button type="button" ng-click="func1(); func2(); func3()">Click</button> I want to know that how func1,func2, and func3 will be called? Is it according to their ...
2
votes
7answers
77 views

Is there a drawback of calling more than one function in a ng-click directive?

We are calling two functions in a single ng-click directive, is there any gotcha that we should be aware of? <button type="button" ng-click="func1(); func2();">Click</button> We could ...
1
vote
1answer
81 views

angular ng-click works from the second click

I am using ng-click to open a modal and for calling a func: <a class="btn btn-info" data-toggle="modal" data-target="#editWorkerModal" ng-click="workerInfo(worker.id); professionsInfo()"> &...
0
votes
1answer
51 views

How to have a click for div element in angualr2

I have a div which should have a click event , I have tried as below <div class="panel-body" (Click)="onDivClick()"></div> But it's not working
0
votes
4answers
59 views

AngularJS ng-click seems to not work

I have an md-select that has inside it an md-option. In the md-option tag I have an ng-click that points to my function that is defined. The problem is that it seems to never get to my function when I ...
1
vote
3answers
45 views

ng-click triggered twice with in a nested ng-click

I have an issue when trying to use the ng-click inside a list which is a sub list of another list which has a ng-click event. Following is my code <ul> <li ng-repeat="facet in node....
0
votes
1answer
49 views

Lost with controllers, modules and clicktoOpen

i want to display a popup containing a youtube video when i click, while displaying a still image normally. I and am completely lost . I'm new to angular, i would really appreciate any insight ! ...
1
vote
3answers
59 views

Toggle between two functions when button clicked.

I have the following button which i am using as a toggle. <button ng-click="togglefunction()">Toggle Data</button> Here is the toggle part which should work $scope.toggleToolPanel = ...
0
votes
0answers
28 views

Highcharts stealing click inside an angular directive

I'm using highcharts inside of an angular directive and i need to be able to click on the entire div but the chart inside the div isn't doing anything when i click on it. I've tried putting a clear ...
0
votes
1answer
42 views

In angularjs ngclick is not working from ajax response

In Angularjs We are get the Ajax response from Codeigniter controller, How can we assign that response to HTML page and ng-click is not working that response. Advice me.
1
vote
3answers
69 views

How can I check if the text of an input field is “yes” or “no”?

I want to check if the text from the input field isAdmin is "yes" or "no". Is it possible to do this with ng-click? <div class="cClearFloat cInputSpace"> <...
0
votes
1answer
56 views

ng-click is disable ?

I'm using Angular 1.2.16 with SB Admin dashboard and I have no reaction with ng-click so i try the simple code of angular doc : <button ng-click="count = count + 1" ng-init="count=0"> ...
0
votes
1answer
68 views

angularjs calling outer controller from nested ng controllers with ng-change

I'm trying to use angularjs to create a page that does the following: Is initially empty, save for a dropdownlist that is automatically populated with apps. upon selecting one of those apps, data ...
0
votes
1answer
46 views

ng-click calling outer controller from nested ng-controllers

I'm trying to use angularjs to create a page that does the following: Is initially empty, save for a dropdownlist that is automatically populated with apps. upon selecting one of those apps, data ...
0
votes
0answers
35 views

Triggering controllers with ng-click

I'm trying to use angularjs to create a page that does the following: 1)Is initially empty, save for a dropdownlist that is automatically populated with apps. 2)upon selecting one of those apps, data ...
0
votes
0answers
23 views

Javascript audio function doesn't work on touch devices

I'm new to AngularJS and as practice case i'm working on a soundboard web app. It's an basic angular app with several big buttons which play a sound when clicked. On the desktop it's all working ...
1
vote
2answers
92 views

Ng-click or Ng-change?

On my website I got this: <div class="tab-container"> <div ng-if="ctrl.subCategory.level_2.length" class="tab-item active"> <div ng-repeat="item in ctrl.subCategory....
0
votes
1answer
93 views

AngularJS ng-click doesn't fire

I generate some a Tags dynamically from a json file and add them like this to the page: for(var i = 0; i < currentScene.hotpoints.hotpoint.length; i++) { var hotpoint = currentScene.hotpoints....
0
votes
3answers
93 views

ng-click not working inside item in Ionic app

I am not able to get the ng-click event to trigger when inside an item in a ionic modal that pops up. When I click on an item I see it turn gray so it seems like it is registering the click but I have ...