I'm in a situation where I need to be able to access the model I have bound to the Drawer accessable to all the views it relates too. I've tried the below. Thanks in advance.
//in the view like this
app.filterService.viewModel.structureId
//model for filter
(function (global) {
var FilterModel,
app = global.app = global.app || {};
FilterModel = kendo.data.ObservableObject.extend({
structures: kendo.observable({ items: GetStructures()}),
structureId: 49118,
days: kendo.observable({
items: [
{ id: 7, name: "Past 7 Days" },
{ id: 30, name: "Past 30 Days" },
{ id: 60, name: "Past 60 Days" },
{ id: 90, name: "Past 90 Days" }]
}),
day: 7
});
app.filterService = { viewModel: new FilterModel() };
console.log(app.filterService.viewModel.structureId);
}
)(window);