Hello Alex,
In AngularJS the controller should be used to setup the initial state of the $scope object and add behavior to it. It should not be used for manipulating DOM elements, as its main purpose is to consolidate business logic. Refer to
the AngularJS documentation on Controllers for additional information.
To achieve the desired behavior, you can add a simple button to the page and attach an ng-click directive on it as follows:
Then, we can attach a function to the $scope variable, retrieve the widget instance and then use
the Scheduler's data() method to output the currently expanded events:
I have prepared
a Dojo example, where the above behavior can be observed.
Regards,
Dimitar
Progress Telerik