Book Image

Learning Ext JS_Fourth Edition

Book Image

Learning Ext JS_Fourth Edition

Overview of this book

Table of Contents (22 chapters)
Learning Ext JS Fourth Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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 idea of what will be coming in this chapter. Now we can go further by covering these topics:

  • MVC and MVVM patterns

  • Creating a more robust application – our first application using both patterns

  • Adding interaction (controllers) and making use of data...