jquery - Reset Array in a function throw an exception AngularJS -
i have variable under scope , when try reset in function throwing me exception.
controller variable declaration:
angular.module('timesheetapp', []).controller('timesheetcontroller', function ($scope, $http) { $scope.timesheet = { tables: [{ projects:{ project: ":)", activities: [{ activity:"", sun: 0.00, mon: 0.00, tue: 0.00, wen: 0.00, thu: 0.00, fri: 0.00, sat: 0.00, total: 0.00 }], defaultprojecttext: "select project", isdisabled: true, projectnumber: 0, day: {} } }], };
});
when call function inside controller sends exception:
$scope.setdays = function () { $scope.timesheet.tables = [{ projects: { project: ":)", activities: [{ activity: "", sun: 0.00, mon: 0.00, tue: 0.00, wen: 0.00, thu: 0.00, fri: 0.00, sat: 0.00, total: 0.00 }], defaultprojecttext: "select project", isdisabled: true, projectnumber: 0, day: {} } }] }
Comments
Post a Comment