Chapter 10. Architecture
In order to create a better code and organization structure, improve teamwork, and also reduce the amount of code to be written, the MVC pattern was first introduced in Ext JS 4. To go further, Ext JS 5 introduced the MVVM pattern, which is another pattern to be used for our applications.
These patterns are quite similar, but the difference is that MVVM introduces a feature called view model (VM) that manages the changes between models' data. Also, the view's representation (by data bindings) gives developers the ability to reduce the code even further, which is occasionally hard to manage for some and a tedious task for others.
In the third code example in Chapter 9, The Tree Panel, we used the MVC pattern to give you an ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access