Linkage
When our forms become more and more complex, we may need to use linkage between form controls. Former has provided field onChange
to control our controls:
onChange
will return two values, one is current input value, the other is model
obejct.
WARNING
model
is observed, if you change the value of the model
, it will update the view. Hope you know what you are doing.