I'm writing a controller that reacts to an update on a given controller property change. I'm writing tests for it, but I realised that the $watch callback is being called before the code that updates the model.
Moreover, after the premature $watch callback invocation and the code that updates the model, the $watch callback is not called again.
It seems to me that the $watch callback is being called during the controller instantiation and the expression observer is not configured, or the like.
What do you guys think?