Questions tagged [angularjs-ng-change]

The ngChange allows to evaluate given expression when user changes the input.

Evaluate given expression when user changes the input. The expression is not evaluated when the value change is coming from the model.

Note, this directive requires ngModel to be present.

Usage

as attribute

<input
  ng-change="expression">
...
</input>

Parameters

ngChange – {expression} – Expression to evaluate upon change in input value.

References:

http://docs.angularjs.org/api/ng.directive:ngChange

265 questions
2
votes
0 answers

How to trigger ng-change event in a angularjs custom directive?

I am using multidatepicker.js for a requirement that allows the user to select multiple dates in a calendar. For any change made by user, I want to trigger a ng-change event. I use a custom directive and implemented for the input field. Because the…
2
votes
1 answer
2
votes
1 answer

What is the best ng-change/ngChange event for Angular 5 to fire a custom function?

I am trying to get the ng-change event to update a function I wrote by doing this. For now, the function only logs "I am here" to the console. I am implementing it like this:
BlockchainDeveloper
  • 520
  • 1
  • 6
  • 20
2
votes
2 answers

How to add ng-model functionality to a component

Angular ng-change on ng-model passed into child directive Basically, I want to be able to pass in ng-model from a parent directive to a child directive. I could just in a 2-way binded value, but then I wouldn't be able to use a ng-change in the…
2
votes
1 answer

Ng-Change Not firing second time

I have the following select:
And then inside my controller I have: angular.module('app.controllers',…
2
votes
1 answer

ng-change of a radio button

based on a customer name user can check the delivery radio button but if there is no customer delivery radio button should not be checked another radio button pickup is there should be checked in that condition. what i am doing is working fine but…
Miranda
  • 259
  • 1
  • 8
  • 19
2
votes
2 answers

get Data from server and display it on select event using $http service and ng-change

I am new to Angular and would like to learn how to accomplish this task I have a dropdown that contains a list of LotType. When a Lot type is selected.I want to make an HTTP GET call to a web API method which returns the list of Lots according to…
2
votes
2 answers

ng-change not working on text box backspace button press

ng-change even not firing on text box backspace button press. ng-change works fine on changing the value example pressing numbers or any character from keyboard but not on backspace button press
Veera Induvasi
  • 822
  • 7
  • 19
2
votes
3 answers

ng-change doesn't work when select value changes

Can you help me please? I have no idea of what this can be. I'm using a template on my pages and each page has yours file js with angularJS…
2
votes
0 answers

Angularjs, select id from dropdown and send it with callback function

I have a form wizard which is has some dropdowns the user needs to select before submiting. The user should select from the dropdown and the id should send to the server. HTML