1

What is the difference between list views within the view object of application set-up:

  Ext.application({
    models: [
...        
    ],
    views: [
        'Login',
        'Home       
    ],

and listing them in the config object of a controller in sencha touch?

   config: {
        views: [
            'Login',
            'View'      
        ],
jaffa
  • 26,770
  • 50
  • 178
  • 289
  • The API Doc doesn't mention any difference between the two. In my app I load views in the profile and not in controller or app.js. – Urmil Setia Dec 01 '12 at 18:19

1 Answers1

1

From Dependencies and MVC :

The general rule when deciding where to declare each dependency is to keep your classes completely self-contained. For example, if you have a view that contains several other views, you should declare those dependencies inside the view class, not the application

Hope this helps

Titouan de Bailleul
  • 12,920
  • 11
  • 66
  • 121