I have an object I want to use as a model for my angular controller.
var SchedulingModel = function() {
this.weekdays = Weekdays;
this.scheduleType = "2";
this.customerType = "1";
this.timesOfTheMonth = TimesOfTheMonth;
this.waivers = [];
}
angular controller:
$scope.model = SchedulingModel;
When I try and access model.weekdays and model.timesOfTheMonth they are both undefined...
console.log($scope.model.timesOfTheMonth);
console.log($scope.model.weekdays);
Why is this?