Skip to content

Fixed the eager dirty state. Fixed the delayed model value received by ng-change. Updated the documentation.#10

Open
MichaelBuen wants to merge 3 commits intokennyki:masterfrom
MichaelBuen:master
Open

Fixed the eager dirty state. Fixed the delayed model value received by ng-change. Updated the documentation.#10
MichaelBuen wants to merge 3 commits intokennyki:masterfrom
MichaelBuen:master

Conversation

@MichaelBuen
Copy link

Turns out calling $setViewValue in newElement’s ng-change( the
scope.changed() ) would automatically call the user’s own ng-change, no
need to do scope.$parent.$eval(attrs.ngChange) by ourselves.

Correct:
http://plnkr.co/edit/0vOkOmm9z4yCZY3ATuFp?p=preview

Turns out calling $setViewValue in newElement’s ng-change( the
scope.changed() ) would automatically call the user’s own ng-change, no
need to do scope.$parent.$eval(attrs.ngChange) by ourselves.

Correct:
http://plnkr.co/edit/0vOkOmm9z4yCZY3ATuFp?p=preview
@MichaelBuen MichaelBuen changed the title Master Fixed the eader dirty state. Fixed the delayed model value received by ng-change. Updated the documentation. Oct 12, 2015
@MichaelBuen MichaelBuen changed the title Fixed the eader dirty state. Fixed the delayed model value received by ng-change. Updated the documentation. Fixed the eager dirty state. Fixed the delayed model value received by ng-change. Updated the documentation. Oct 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant