Implementing data binding with native JavaScript

Writing your own implementation of data binding can be done fairly easily using native JavaScript. If you don't feel the need to use a comprehensive framework or library for your application and simply want the benefit of the data binding design pattern baked in, using native JavaScript to implement it is a logical course to take. This will provide you with several benefits, including the following:

  • You will understand how the data binding actually works under the hood
  • You will have a less bloated frontend that doesn't include extraneous library code that you may not even use
  • You won't be pigeonholed into an architecture defined by a particular framework when all you want is the added benefit of data ...

Get Mastering JavaScript Single Page Application Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.