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
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
In the next chapter, we will look at how the class loader works. However, one thing ...