angularjs-ng-click Questions
5
Solved
I have a table on HTML and each row leads to a different page, with more details about that row. But as I am using angularjs, with ng-click I can't right click this row and select 'open in a new ta...
Militia asked 14/4, 2014 at 20:14
9
Solved
I would like to call the login function when I click the login button but keep getting the error message in the title. Can someone point out the error in my script?
login.js code below:
/*glo...
Proscenium asked 14/8, 2015 at 6:18
6
Solved
I can get ng-click to work when the scope is inherited on a directive but not when isolated. UPDATE: The point is that I want the click function to be defined as part of the directive... moving the...
Incommensurable asked 14/10, 2016 at 16:17
5
Solved
Why does the second button not work, when ng-if is used?
I want to realize a button that is present only when the model value is set / not ""/ not null.
Template:
<input type="text" ng-model=...
Prady asked 20/11, 2014 at 12:27
6
Solved
I am new in AngularJs, ng-click is not working as expected. I searched on the internet , Follow the tutorial , (that was working) - but this is not working!!!
My Code:
<div class="row" ng:rep...
Communism asked 21/8, 2014 at 9:18
5
Solved
Is there a way to pass to angular directive ng-click the value of the associated input?
In other words, what should replace this.value in the following:
<input type="checkbox" id="cb1" ng-clic...
Chengtu asked 30/10, 2015 at 8:28
4
I need to pass a $index value of a specific element, added with ng-repeat, to a javascript function.
My code sample:
<tr ng-repeat="cells in CouponsList.CellPhones">
<td><button ng-...
Suggestibility asked 21/7, 2014 at 19:40
4
Solved
For a mockup I need a simple mechanism like
ng-click="alert('Clicked')"
but the code above is not working, can someone help me? I don't want to touch the Controller..
Aileneaileron asked 20/1, 2016 at 11:45
4
Solved
So if i have a ul with 100 li's should there be ng-clicks in each li or is there a way to bind the event to the ul and delegate it to the li's kind of what jquery does? Would this be better or wors...
Martguerita asked 20/12, 2012 at 5:3
3
Basically I want my app to open links in new tab/page when user holds down Ctrl (on linux windows), Cmd (on OSX). What is the way to go.
Note: I cannot get rid of ng-click. the application uses it...
Fearful asked 29/5, 2014 at 7:34
10
Solved
I want to trigger ng-click of an element at runtime like:
_ele.click();
OR
_ele.trigger('click', function());
How can this be done?
Kylynn asked 17/3, 2014 at 5:9
7
Solved
I have an accordion with "chevron" icons that are toggled to point up or down when clicked, this is done with ng-click and ng-class. The accordion only permits one panel to be open at the same time...
Flutist asked 6/8, 2014 at 12:43
3
Solved
How can I toggle classes on several elements individually with ng-click?
In this question https://stackoverflow.com/a/22072110/2169327 toggling classes with a click was done like this:
CSS:
.red...
Encephalomyelitis asked 5/8, 2014 at 14:20
4
Solved
I'm trying to pass a callback function from a controller to a directive.
Here's the callback function code:
$scope.onImageSelect = function(image) {
alert('SET');
$scope.card.image = image;
};
...
Neille asked 15/7, 2015 at 20:26
3
Solved
On page load i have a controller that calls a service and then binds the returned data to some $scope.objects:
app.controller("MainController", function($scope, $http, serviceGetData) {
serviceG...
Valedictorian asked 30/7, 2014 at 8:38
8
Solved
Suppose you are using routes:
// bootstrap
myApp.config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) {
$routeProvider.when('/home', {
templateUrl: 'parti...
Selfopinionated asked 7/1, 2013 at 18:23
10
Solved
I am trying to work how to add a class with ngClick. I have uploaded up my code onto plunker Click here. Looking at the angular documentation i can't figure out the exact way it should be done. Bel...
Diploblastic asked 8/12, 2013 at 23:3
7
Solved
I have a simple loop with ng-repeat like this:
<li ng-repeat='task in tasks'>
<p> {{task.name}}
<button ng-click="removeTask({{task.id}})">remove</button>
</li>
T...
Hokku asked 11/6, 2013 at 8:47
8
Ng-click doesn't work from inside ng-repeat. Outside it works.
I've put a fiddle here
<div ng-controller="MyCtrl">
<a ng-click="triggerTitle='This works!'">test</a>
<h5>P...
Padegs asked 24/5, 2013 at 14:1
3
Solved
This Plunkr has 2 links. The one on the left side is using the ng-click directive with the on angular-touch module inserted. As said in the angular touch module description for ng-click, the ng-cli...
Joannejoannes asked 21/12, 2013 at 10:32
3
Solved
I have a problem with using AngularJS and Angular-Material.
Take a look at the following code:
<div flex="100">
<ul class="list-group">
<li class="list-group-item cursorPointer" ...
Putsch asked 22/6, 2015 at 13:39
6
Solved
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 ...
Jamieson asked 7/12, 2013 at 17:38
2
Solved
I have a few buttons that work like switchers. If you click one it becomes active and "shuts down" other buttons. I did this using jQuery but would like to use AngularJS. Here is my code:
HTML
&l...
Unstoppable asked 7/8, 2015 at 8:0
2
I am working on one small angularjs app. I have a button, where I am using 2 events, ng-click, and onlick. It works right and there are no issues, but I want to be sure 100% I am doing it good and ...
Councilman asked 29/10, 2014 at 21:39
3
Solved
After a click pass the event to ctrl. I want to write a conditional that will return true if the element.target has the class modal-click-shield
Question:
How can I use .hasClass() with event.targe...
Vainglorious asked 21/1, 2015 at 0:4
1 Next >
© 2022 - 2024 — McMap. All rights reserved.