-
addSanta()
-
Adds new Santa, and send it server and mongoDB. It is connected to the SIGNUP BUTTOM
- Source:
-
-
deleteRenew()
-
If admin enter right email/password the he/she can DELETE this round of giftitng. It is connected to the DELETE & RENEW button
email is admin@smith.com
password is 123
- Source:
-
-
getMatch()
-
Shows the Santa his/her match to buy gift
- Source:
-
-
init()
-
It used for initialization of app at the begining and after each change.
- Source:
-
-
makeMatch()
-
If admin enter right email/password the he/she can terminate this round of giftitng. It is connected to the TERMINATE &MAKE MATCHES
email is admin@smith.com
password is 123
- Source:
-
-
santa($scope)
-
santa Factory that get info from santa factory.
Parameters:
Name |
Type |
Description |
$scope |
Object
|
provided by AngularJS |
- Source:
-
Returns:
santa
-
Type
-
Object
-
secretSantaCtrl($scope, santa)
-
secretSantaCtrl Controller that get info from santa factory.
Parameters:
Name |
Type |
Description |
$scope |
Object
|
provided by AngularJs |
santa |
Object
|
injected factory written by me. |
- Source:
-