Users have the ability to set an end date for a scheduled event, but I would like them to also have the option to specify how many times they want the event to repeat before it ends. For instance, if they choose to repeat weekly for 4 weeks, I need to be able to calculate and update the end date accordingly. As a newcomer to angular, I'm not exactly sure how to approach this challenge.
This is what I was thinking:
function EventEditCtrl($scope) {
init();
function init() {
$scope.event = {
ActiveEndTimeDate: '',
Occurrences: '',
Repeated: ''
}
}
$scope.updateEndDate = function () {
//update event?
};
}