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 ...

Get Learning Ext JS - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.