All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
537 views

AngularJS: ng-change does not work when value changes on ng-click

I have created some control buttons to handle server side pagination. It has 4 buttons (First Page, Previous Page, Next Page and Last Page), a page counter which is an input text field and a drop-down ...
-1
votes
1answer
70 views

AngularJS cannot grab values with ng-model while using ng-repeat

I am trying to grab dynamically created information with ng-model (info created with ng-repeat). I am doing so in order to send the information in the form of an object to my flat database, Firebase. ...
0
votes
1answer
31 views

ng-click works only after filtering by typing into a field

I want to add to dir Paginate control filtering. <tr dir-paginate="advert in adverts |orderBy:propertyName:reverse | filter: searchAdvert | itemsPerPage: pageSize"> I have categoryId ...
0
votes
2answers
759 views

auto generate download link with angularjs

i generate my download link from this script https://github.com/joshpangell/single-use for example: download url generated like this: http://cloud.joshpangell.com/singleuse/download.php?key=...
0
votes
2answers
558 views

Apply $scope ng-click event to hidden element after it is displayed

Please ask me for better explanation. I have built a global search function into the header of my site. I want to display a separate input box for mobile search that uses the same ng-click event but ...
0
votes
2answers
548 views

Update array model with click on ng-repeat elements

I have a two-dimensional array of Cell objects, this array is represented in my html by some ng-repeat <td>elements, I would like to update my cells when a <td> get clicked. I don't know ...
0
votes
1answer
130 views

ng-class applied on pageload, expression is untrue

I'm trying to apply a class to the parent tr of a td that holds a checkbox element. The code works fine, except that the first time the page the loads, the tr already has the class applied, even ...
0
votes
1answer
135 views

AngularJS dynamic filter ng-repeat not firing ng-click

I have a ng-repeat with a cutsom filter to include/exclude tasks based on their complete status and the user's current settings. I works fine, until when the ng-model change causes the task to no ...
0
votes
1answer
388 views

Angular ng-model dependent from other ng-model in forms

I am trying to achieve a form with: 1 input radio ( 3 options ) 2 select ( 3 options ) Depend of the choice i mad in the select, the input[radio] should change but also if i click a input[radio] ...
0
votes
0answers
38 views

Node server restart causing multiple issues: ng-click, ng-model for one element only not recognised

The application was working fine until I restarted the node server. I tried pulling my last commit from git (which worked fine) and running it, but the same error. 'npm start' gives an error : could ...
0
votes
1answer
91 views

ie doesn't pick up ng-model change angularjs

I've asked this question before but still had no luck. I have a simple text input with a model attached like so: <input type="text" ng-model="testingInput"/> <a ng-click="pushValue(...
4
votes
4answers
34k views

How to retrieve the value from textbox using AngularJs?

$scope.add=function() { //How to retrieve the value of textbox } <input type='text'><button ng-click='add()'></button> When I ...
0
votes
1answer
37 views

highlighted ng-model jumping from one model to another

I have 5 buttons. When I click different buttons at a fast rate, sometimes the previous highligted button will become highlighted again even if I don't click it. in my controller $scope....
4
votes
2answers
3k views

Change selected <option> of a <select> using ng-click

I'm wondering how i can change the selected <option> of a <select> using ng-click. <select ng-model="orderProp"> <option value="name">Alphabetical&...
0
votes
1answer
610 views

AngularJS: Access models using dynamic names in template

I have a template with a lot of what is essentially duplicate code. I'd like to use a directive to include a partial template which I can manipulate for each "block" of duplicate code. The template ...
1
vote
2answers
832 views

Is it possible to chain instructions in an ng-click?

I've got a couple of sliders I want to pick from a menu. As a consequence, I need to both pick the right slider and reset the first slide to 0. I have a slide model I set to 0 fro the ng-click just ...