Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onChange not supported #24

Open
luxsyp opened this issue May 12, 2015 · 7 comments
Open

onChange not supported #24

luxsyp opened this issue May 12, 2015 · 7 comments

Comments

@luxsyp
Copy link

luxsyp commented May 12, 2015

Hello,

I'm trying to use the "onChange" (from the standard option of angular-schema-form)
but the function is never called :

$scope.form = [
   {
    key: "start_date",
    format: "dd-mm-yyyy",
    onChange: function(modelValue,form) {
      console.log("start_date =", modelValue);
    }
   },
 ];
@oatkiller
Copy link

👍

@tflanagan
Copy link

This is still an active issue.

From what I understand the ASF onChange is fired via angulars viewChangeListeners, I cannot see a way to manually trigger this.

Anyone have any insight?

@gatperdut
Copy link

+1

@I3r41n
Copy link

I3r41n commented Aug 21, 2017

Is there any news about this?

@tiuma
Copy link

tiuma commented Sep 13, 2017

Hi... I have the same issue. Any workaround?

@kornosaurus
Copy link
Contributor

kornosaurus commented Oct 3, 2017

You could use a regular $watch. Depending on what you want to do this might work just fine as a workaround

$scope.$watch('model.start_date', function(val) {
  console.log("start_date =", val);
});

@tiuma
Copy link

tiuma commented Oct 5, 2017

Thanks @kornosaurus for your response. The workaround works great for me!

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

No branches or pull requests

7 participants