| [No Target Defined] > Creating the main JavaScript file |
This is the main JavaScript file for the Notes App. The HPA.Interop.setReady call is mandatory and must be used after initializing the client side. This call notifies the HP Anywhere Framework that the App client side is ready to be used.
Ext.application({
name: "NotesApp",
models: ["Note"],
stores: ["Notes"],
controllers: ["Notes"],
views: ["List", "Editor", "Summary"],
launch: function() {
// Destroy the #appLoadingIndicator element
window.myApp = this.application;
// Must be called ///
HPA.Interop.setReady(true);
}
});