One Way Data Binding in 10 Lines

The frontend world is full of plugins and frameworks. It can be easy to jump the gun and include dependencies even for solving simple problems. There are loads of frameworks with one and two way data binding, and it’s a really empowering concept.

But adding these dependencies is sometimes overkill, and at it’s core it’s only a couple of lines of javascript.

See the Pen One Way Binding 10 lines by Andreas Heiberg (@AndreasHeiberg) on CodePen.