I am trying to implement a custom dialog like the one describe HERE or HERE
In the js file I fdefined the modal's view as
var CustomDialog = require('./customModal')
var DialogModel = require('./MyModel') However, my DialogModel requires as parameter in its activate method. The route for the MyModel is defined to take a parameter and its activate method is defined as
function activate(routedata){
....
}
To open the dialog, I have
var routedata = 90;
this.dialog = new CustomDialog('My title', new DialogModel());
this.dialog.show()
How do I pass this route data to the path?