I've been attempting to connect the wijeval to an array of events within an AngularJS Controller. Here's what I've attempted so far:
View:
<div ng-app="MyApp" ng-controller="MainController">
<wijevcal viewtype="week" eventsdata="{{events}}">
</wijevcal>
</div>
Controller:
var app = angular.module("MyApp", ["wijmo"]);
function MainController($scope) {
$scope.events = [{ id: "ev1", subject: "First event", start: new Date(2013, 5, 23, 15, 30), end: new Date(2013, 5, 23, 17, 35) },
{ id: "ev2", subject: "Second event", start: new Date(2013, 5, 23, 10, 30), end: new Date(2013, 5, 23, 11, 35) }];
}
The eventsdata binding isn't functioning as intended, and any new events created are only stored in the local browser storage. I'm hopeful that someone can assist me in getting the binding to work properly, as the "documentation" I found has been less than helpful.
Link to documentation:
Ceddy