Calls TODO App, JavaScript (AngularJS)
Detailed documentation concerning App.js functionality can be found in the comments inside the JS file.
Parameters
$scope $filter $interval localStorageService
Set the default sort type (by Name or by Time)
Type: String
Set the default sort order
Type: Boolean
Object containing the next to-do item, sorted by time. Used for displaying the next item in the Next Item table
Type: Object
init Initialize the App
By default show all entries
type String
Update List every second to check if call time has passed and toggle it's checkbox. Also check Next Call Todo Entry.
Adding a new TODO entry Before the entry is added the app passes through several validations for Name, Phone, and Time, to make sure all entries are in the correct format. After that the entry is added at the beginning of the todo array
Members
+timeRe +phoneRe +timeMembers
Deleting a TODO entry
Parameters
item: Object
Getting current time from the Date object and formatting it to HH:MM
Returns: String
Comparing times. Returns 1 if greater, -1 if less and 0 if the same
Parameters
time1: String
time2: String
Returns: Number
Filter Function for All | Next | Finished. Checks if todo entry belongs to one of these categories
Parameters
todo: Object
Checks if todo entry belongs to one of these categories
Returns: Boolean
Getting the next TODO entry if any
Returns: Object
First order the todo list to increasing values by time
type: Array