I'm using Deftjs´s ViewControllers, and now I had to pass some variables from a controller to another.
How is the best way, since I create a view and not a controller?
My actual solution is:
In controller 1:
var me = this;
var win = Ext.create('App.view.car.Window');
win.getController().setBrandId(me.brandId);
win.getController().setColorId(me.colorId);
win.show();
and my controller for car view:
Ext.define('App.controller.car.WindowController', {
extend: 'Deft.mvc.ViewController',
config: {
brandId: null,
colorId: null
},
....
Thanks,