I tried to add the class Contact to the requires array, but I keep getting the error: 'Ext.define is not a function', however the application works the same.
I solved the problem of adding an attribute to a class, defining a new class, so if I wrote:
Code:
this.getMainNavigationView().push({
xtype: 'Container',
myProperty: Ext.create('Contact')
});
Only it works with Architect running, instead writing:
Code:
Ext.define('foo', {
extend: 'MyApp.Container',
myProperty: Ext.create('Contact')
}
this.getMainNavigationView().push(Ext.create('foo'));
This also works after publishing the application.
Thanks for the support.