O'Reilly logo

Sencha MVC Architecture by Ajit Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dependency management with loader

If you have noticed, we did not include any JS files (other than app.js) in the index.html folder and the rest of the files were automatically loaded for us. Well, it is not really automatic. We did indicate the dependencies which the class loader used to load the classes before they are used. We used the requires, controller, views, models, and stores properties to list out the dependencies. Also, we specified the name for the application which acts as the namespace and tells the loader to load all the classes, with that namespace, from the app folder. For example, AM.view.user.List will be loaded from the app/view/user folder.

In the next chapter, we will look at how the class loader works. However, one thing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required