2

I am changing the value of my model from controller. I went through this post AngularJS custom validation not firing when changing the model programatically. The issue is $formatter is executed after $watch is executed.Why is that happening. Is there any other way to bind from model to view so that $watch executes after the bind has happened from controller.

what i understood is $parsers executes in the pipeline of view to model and then $watch is triggered and $formatters executes in the pipeline of model to view after $watch has already executed.

But i want something like $formatter to be executed before $watch or any alternative to it.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.