Search Posts

Category: angularjs-ng-change

Angular 1.5 ng-change on select element in component triggering previous response

I’m just starting to play with components in Angular 1.5.x and have created one for a select box on a form – I pass in the field, list and label to the component and it creates the form ‘part’ consisting of the label and select box with the correct options – so far, so good. Now I want to implement an ng-change on the select so I am passing in the function I want to […]

Angularjs: Facing issue with ng-change and ng-iterate

Problem Description: Whenever I try to select elective from dropdown1, the same subject code & subject credit gets populated for 2nd elective as well. Whenever I try to select the last value of dropdown, the subjecty code & subject credit remains unchanged (i.e., previous value is displayed). I have browsed the stack overflow on posts related to this scenario. But, I couldn’t find solution as this scenario is very specific. That’s the reason, why I’m […]