Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
0 votes
1 answer
520 views

So I want to say Im new for Angular. app.component.ts; model = new Model(); addItem(value:string){ if(value!="") {this.model.items.push(new TodoItems(value,false));} model.ts; ...
EsprnzJK's user avatar
0 votes
1 answer
950 views

Looking to scroll to page sections when user clicks using scrollIntoView in a modal with dynamic content. I've tried using ViewChild, event emitting, and ngAfterViewChecked but no luck. Code: https://...
nara_l's user avatar
  • 674
0 votes
1 answer
106k views

I'm trying to implement a Refresh button for fetching latest search results from an external index. When I click on the Refresh button the icon is supposed to spin. My plan was to have a scope ...
cmgchess's user avatar
  • 10.3k
1 vote
1 answer
106k views

I have a button for which I have set ng-click="refresh()". The console logs before the timeout function logs correctly but the console log inside the $timeout block and after the block doesn'...
cmgchess's user avatar
  • 10.3k
0 votes
1 answer
385 views

Use-case : User clicks on a button inside text angular textarea and applications angular function to be invoked Changes made : We had added ng-click, onclick events in textAngular-sanitize.js refer ...
Anand Kadhi's user avatar
  • 1,918
4 votes
1 answer
475 views

I've been searching for a solution here on Stackoverflow or Google, but unfortunately I couldn't find any solution. I'm trying to do webscrape on a website, but I can not click on a button with Python ...
barnam's user avatar
  • 43
0 votes
1 answer
46 views

below vm.onQRnClicked function is not getting fired from a ng-click in table. link for QRN column in table is being dynamically created from responses of API's. used ng-click to attach event.getWf, ...
NoStressDeveloper's user avatar
0 votes
1 answer
77 views

I want to show one div by default. If a button clicked, show the second div and if it clicked again, show the third div. I tried ng-if and ng-show and nothing happened. <table class=""...
Alaa's user avatar
  • 23
0 votes
1 answer
133 views

I'm trying to get ng-click from one of my views to work globally. I started with this Plunker and I've looked at these answers already: ng-click not firing in AngularJS while onclick does Angular ng-...
Chaospyke's user avatar
0 votes
1 answer
71 views

I have this code where I could only change the color once , i want the color of the selected button to change in each diffrent line.that in each line there will be only one button selected but for ...
A FR's user avatar
  • 1
0 votes
1 answer
652 views

I am trying to make table header sorter work by using ng-click and ng-init. Examples in angular js documents require modules, and if I install and update that module, my SPA falls apart for some ...
beginnercoder's user avatar
0 votes
2 answers
1k views

I'm building a ToDo application to learn Angular JS. In my app I have an array called toDoList, that I push objects into based on some inputs from the user, this is done elsewhere in a modal. That ...
orangejuice's user avatar
0 votes
1 answer
229 views

I'm working in kendo UI & I'm facing an issue while I give an ng-click option on the HTML content which was loaded later. Here I'm adding a few codes related to what I have did: HTML: <div ng-...
Sinto's user avatar
  • 3,977
1 vote
0 answers
572 views

i have list of contacts divide in alphabetical categories and another section contains alphabetical letters , like this image (image will help to understand my question) contacts list to do that i ...
Ekramy Noaman's user avatar
1 vote
0 answers
76 views

I implemented drag and drop directives which work on a button. In my drop directive I use preventDefault() which is needed for the functionality of dropping elements on the button. However, this ...
amir.algazi's user avatar
0 votes
1 answer
455 views

I am just wondering is there any better way to approach same kind of logic as below. 4 buttons onclick of it have to send parameters like (english, german, spanish, french) to angular function. Is ...
subha's user avatar
  • 1,070
0 votes
3 answers
847 views

I have code on https://jsfiddle.net/8t45enfg/2/ The source code is quite simple, suppose the array list have only one element HTML code: <div ng-controller="myController"> <table> ...
Ngoc Phuong Le's user avatar
0 votes
2 answers
97 views

<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js"></script> <div ng-app="myApp"> <div class="container" ng-controller="CtrlList"> <div ...
jsduniya's user avatar
  • 2,472
0 votes
1 answer
211 views

I am experiencing a problem, to which I currently have no suitable solution: Having an input field and when selecting the text and the mouse cursor is moved beyond the input field, the ng-click-event ...
HappyR's user avatar
  • 43
0 votes
2 answers
85 views

I've managed to disable ngClick on an element if a variable assigned to the scope (notInProgress) evaluates to true like so: <a data-ng-click="notInProgress || $ctrl.setTab('renewal');</a> I ...
Patrick McDermott's user avatar
1 vote
0 answers
68 views

The main issue I am facing here is that I have two divs and two directives that are nearly identical. The main difference between the two is that in one, most of the variables were changed to product, ...
Jeff Crowing's user avatar
1 vote
2 answers
116 views

I was trying to make a few buttons using Array. The buttons displayed, but the function from the array is not working. var module = angular.module('app',[]); module.controller('Ctrl',['$scope', ...
Naufal's user avatar
  • 25
0 votes
1 answer
331 views

i got an switch button in my HTML part.It uses "checked ng-click", "ng-modal" and uses the css class "switch" from https://material.angularjs.org/latest/demo/switch So my problem is i ve got a ...
Natter's user avatar
  • 43
0 votes
1 answer
62 views

I am working on a small AngularJS application. In one of the views, I have replaced some hard-coded html with data coming from a JSON file that I iterate through: <class="actions-list"> <...
Razvan Zamfir's user avatar
0 votes
2 answers
211 views

In my HTML I have a dropdown list that I did with an ng-repeat. Each of these elements needs to have their own function when clicked, so I'm using $index. Here's part of my code: <div class="...
Soul Eater's user avatar
0 votes
1 answer
448 views

I am trying to implement a directive that replace a tag by a with ng-click in it. The ng-click call a function that replace the content of a div (always the same) with the content of another ...
Piotr's user avatar
  • 3
0 votes
0 answers
34 views

I have seen many people ask this question, however the answers are so complicated that they do not make sense, neither do the fiddles. I am having an issue with ngSanitize removing my ng-click links ...
Matthew Walker's user avatar
0 votes
2 answers
3k views

I would like to be able to select a button using querySelector and set an attribute of "ng-click=doSomething()" I have tried selecting the button and then setAttribute("ng-click", "doSomething()") ...
Evan's user avatar
  • 2,527
0 votes
1 answer
379 views

I have single button on a page. Clicking on that button navigates to a desired page. Problem occurs when I go back to previous page and when I click on a button nothing happens. I observe that it ...
nagaraj gond's user avatar
0 votes
1 answer
40 views

I need to animate each click on a website. So i created a derictive for this. But, not all events works fine, for example if it's ui-sref or ng-click event that changing state or opening a modal ...
Maxim's user avatar
  • 121
-1 votes
2 answers
2k views

I am trying to find a button and click on it. I am using selenium with c# and also have protractor. I am not able to find the element. <button class="btn--primary quote-summary__card-btn" role="...
Chhavi Beri's user avatar
0 votes
1 answer
21 views

I have a function that I can call from a button, but I need to call it from the text within a paragraph. This works: <ion-chip (click)="myFunc('text')">Do stuff</ion-chip> async ...
Jephph's user avatar
  • 3
0 votes
1 answer
173 views

I am trying to create an angular application from scratch. I have been trying to solve this for hours now, but I couldn't make it work. All the following files are placed inside a parent folder. ...
arunken's user avatar
  • 497
0 votes
1 answer
369 views

My code as below in html file: <ul class="main-icons" ng-if="showMainIcons"> <li ng-repeat="programData in tab.data"> <img src="{{programData.icon}}" ng-click="...
Ritesh Arora's user avatar
0 votes
1 answer
229 views

I had a scenario where I have to make some alterations in localstorage as well as in some other data of the controller, this logic was supposed to be done on click of anywhere in whole page. This code ...
Muhammad Awais's user avatar
0 votes
1 answer
340 views

I am using Angular JS and FullCalendar control for one of my requirement. My code for full calendar in Angular JS is as below:- <div ui-calendar="uiConfig.calendar" ng-model="eventSources" id="...
simple user's user avatar
0 votes
3 answers
581 views

I have a requirement where I want to call an AngularJS function on button click. So I tried like below var app2 = angular.module('grdContrl', ['datatables']); app2.controller('dtAssignVendor', ['$...
HEEN's user avatar
  • 4,754
1 vote
1 answer
506 views

I am working online courses project. I have multiple courses fetch from data with the unique id. And My courses Id have images or video. When I clicked on my courses Id then it redirects to this page(...
awwalfaeed's user avatar
0 votes
1 answer
53 views

I want to hide a form when you click on a tr of a table, using ng-click but when I click on the tr nothing happen, This is the code i have: <tbody ng-repeat="userf in user | filter:buscador as ...
sebas aguirre's user avatar
0 votes
1 answer
230 views

Hi i am trying to run a function from my .js file by a button but when i click the button it is not responding and nothing is happening. Html: <html> <head> <script src = "...
Aaron Rogers's user avatar
0 votes
2 answers
271 views

I am generating dynamic html element from angularjs controller.I have used $compile to make ng-click work inside html element.But still it is not calling the function. Here is my js var ...
Sachin HR's user avatar
  • 460
1 vote
1 answer
72 views

This is the code of my HTML <div id="container" ng-app="containArea" ng-controller="myCtrl"> <div id="sidebody" class="block"> <button ng-repeat="shopli in shopName" ...
Hsuan's user avatar
  • 13
1 vote
1 answer
65 views

I am trying to create clickable legends. I am using flot chart and legendFormatter to manipulate the legends. Here is my code in js file: $scope.labelFormatter = function (label, series) { return ...
Beyza's user avatar
  • 103
0 votes
1 answer
1k views

Sample Html <a href="javascript:void(0)" ng-click="someFunction()" /> Controller will have the following function someFunction() { window.open('http://www.example.com'); } When we click ...
Ravi Sankar Rao's user avatar
0 votes
2 answers
118 views

HTML <div id="rightpane"> <div id="rightpanecontent" > <div id ="Addbtn" style="text-align: right;"> <button type="btnAdd" class="btnAddText" ng-click="addText()" ...
gacha's user avatar
  • 103
0 votes
1 answer
925 views

I want to add a specific class to the body tag and active class to the parent element when I click on each radio buttons. Eg: <form action=""> <input type="radio" value="layout1">...
Fabul's user avatar
  • 166
0 votes
0 answers
44 views

I have one index.html page and I am using ng-view. The two HTML templates are page1 and page2. I have a button to which I have attached an ng-click function. When the function is fired, I am fetching ...
Aadi's user avatar
  • 17
0 votes
1 answer
631 views

I am making a URL list inside an angular App, Most of the URLs all lead to https://example.io... However a select few have URLs such as https://example.io. I don't want to specify the URL inside every ...
255.tar.xz's user avatar
1 vote
2 answers
138 views

Now I can read the PictureName from database and show it on the browser. (Picture below: black block on the left) And what I want to do is that, when do click on one of rows (ex: pic1), it will ...
FJF's user avatar
  • 135
0 votes
1 answer
1k views

I'm needing to filter images based on category in the model. I've created buttons for the category. E.g. if user presses Lake Pics button, would like it to filter all of the images with the category ...
Ginger22's user avatar
  • 157

1
2 3 4 5
22