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

The MVC and MVVM patterns


If you are new to these patterns, this section will tell you how the patterns work so that you can get an idea on what to expect. So, let's start with the general concepts:

  • Model: The collection of fields and data. This is used with stores to present data, use it with our components, or interact with our code. Refer to Chapter 4, It's All about the Data, for more details.

  • View: This is the visual part where the end user will be interacting. Types of container components—grids, panels trees and so on—are all views.

  • Controller: These are special containers (classes) where we will put the code that makes our application work (handles events and methods). This will be like an intermediary between the model and the view.

  • ViewController: This is a controller that will be attached to a specific view instance and will manage that specific view and its child components. Each time a view is created, a new instance of the ViewController will be created for that specific view...