Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Function in ng-change is fired before input is touched. #9867

Closed
@JonasJonny

Description

@JonasJonny

Today I wanted to "upgrade" to 1.3.1.
Every piece of my app is working but ng-change not anymore.
My function "showPriority()" is called when template is rendering as many times as is items in an object speakers (deferred ajax result from laravel api).
It was working fine (function is called only when I will change the value of input) in 1.3.0-beta.19, but not in 1.3.0-rc.0+ (for 4 items is called 4x, when i will change the value +1x...).

Is there any difference in ngChange?

<div data-ng-repeat="item in speakers | orderBy:sortBy:reverse">
  <input type="text" data-ng-model="item.priority" data-ng-change="showPriority()">
</div>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions