The current version is updated as follows.
- Add a $ JSON object, which corresponds to a pure JS object in viewmodel. There are no special methods and attributes added by accessors and frameworks, so that users can directly submit it to the background. This object will be synchronized every time we modify the viewmodel attribute. Now we can synchronize the view and model simultaneously when modifying the viewmodel.
- Refactor avron. Define, collection, evaluate function,CodeMore streamlined, 50 lines less than the previous version.
- The MS-model method can now bind multilevel attributes such as AAA. BBB. CCC.
- Abandon avron. foreach and use avron. Each, but the old one can still be used.
- The $ watch method can now listen to array Length changes. The event is name + ". length" and the name is the array name.
- Add data-binding to facilitate UI configuration.
In addition, to add the UI component, you can view the effect here for detailed requirements.
Official Website address for http://rubylouvre.github.io/mvvm/
Framework, you only need to download the aveon. js in it, without any dependencies
For the version number that Boyou is concerned about, it is decided to use the third version number next time, that is, 0.6.3!