Two-Way Data Binding

Vanilla JS is our baseline. Input values are synchronised using two event handlers, one on each input field. Temperature is our model. Note that it only stores °C values, it doesn’t store °F. We can always convert one to another so there is no need to store both.

View More