1,085 questions
0
votes
1
answer
526
views
Cannot assign value "undefined" to template variable "buttonName". Template variables are read-only. Angular/TypeScript
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;
...
0
votes
1
answer
956
views
Angular click directive scroll to section of page within modal-dialog not working with dynamic content
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://...
0
votes
1
answer
107k
views
Angular.js unable to change scope variable value just after a different function call
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 ...
1
vote
1
answer
106k
views
In an Angular.js controller's scope function code doesn't run below a $timeout statement inside
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'...
0
votes
1
answer
395
views
Capture Ng-click event from button inside the texteditor in text-angular
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 ...
4
votes
1
answer
496
views
Python Selenium ng-click action
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 ...
0
votes
1
answer
56
views
ng-click event not getting fired with ng-repeat in a table
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, ...
0
votes
1
answer
82
views
show div depend on number of clicks using ng-show, ng-click, ng-init
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=""...
0
votes
1
answer
142
views
Angular JS ng-click not being triggered, using multiple controllers
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-...
0
votes
1
answer
94
views
how to change color Buttons once it is selected? and if input question
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 ...
0
votes
1
answer
659
views
ng-click and ng-init variable definition
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 ...
0
votes
2
answers
1k
views
AngularJS - Toggle object value boolean on button click
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 ...
0
votes
1
answer
237
views
Click not working after html append using ajax in Kendo UI
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-...
1
vote
0
answers
575
views
Scroll to ngFor angular item by clicking on another
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 ...
1
vote
0
answers
91
views
Rebind ng-click event
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 ...