-
Book Overview & Buying
-
Table Of Contents
Mastering JavaScript Single Page Application Development
By :
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 binding
The Object type in JavaScript has native get and set properties that can be used as getters and setters for any property name on a particular object. A getter is a method that returns a dynamically computed value...