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
0
votes
1 answer

AngularJS : how to use ng-change in factories?

My html:
My controller: app.controller('MainController', ['$scope', function($scope){ var search; $scope.change = function(value)…
Vladyslav Turak
  • 6,014
  • 4
  • 24
  • 25
0
votes
0 answers

AngularJS ng-change, how to change only model value pointing to given input?

I have the following Input with Kendo Date picker:
redrom
  • 11,502
  • 31
  • 157
  • 264
0
votes
1 answer

Angular JS range input issue

when the all corners range input is moved, the rest of the inputs work fine but when another corner range is moved the all corners move 1~3 pixels, what could be the issue here? Demo here: http://jsfiddle.net/g10fsxym/ code: var myApp =…
HiroHito
  • 89
  • 1
  • 16
0
votes
2 answers

How to change select functions in Angular Directive?

http://plnkr.co/edit/pJRzKn2v1s865w5WZBkR?p=preview I have a large select dropdown form which is repeated in 2 places. The only thing that changes is the first select tag, which has a different function.