View Full Version : viewModel: { type: 'test' }, recommendation not in ExtJS7 MyApp

16 Jul 2019, 3:01 AM
https://docs.sencha.com/extjs/7.0.0/guides/application_architecture/view_models_data_binding.html (https://docs.sencha.com/extjs/7.0.0/guides/application_architecture/view_models_data_binding.html)

Always use the following form when configuring your viewModel. This is important because of the way the Config System merges config values. With this form, the "type" property is preserved during the merge.

Ext.define('MyApp.view.TestView', {
viewModel: {
type: 'test'

but ExtJS7 MyApp uses
viewModel: 'main',