I have a View which I instantiate like this. 'content' is some random data that I want to pass which I would use in the View and render the UI with this data.
var nextView = Ext.create('MyApp.view.NextView',{
content: content
});
Now, on the view, I am able to initialize and access this data from within the initialize function of the View.
iniitalize: function(){
this.callParent();
var content = this.config.content;
}
Now, I have a method in my controller, where I want to get the value of this content. What is the best way to do that? I have been digging through the docs, and searching examples, but, haven't got anywhere.