Controller: chatterboxCtrl

chatterboxCtrl

chatterboxCtrl()

Controller for chat. Makes use of databaseAndAuth factory in order to retrieve/update chat messages from the databse.
Source:

Methods

(static) fetchMessage()

Gets all the chats from the database, attaches them to the scope, and then renders the updated scope ($scope.apply())
Source:

(static) sendMessage()

Gets the user email and username from the database. Takes user input ($scope.text) and updates the database with that input. Each input is added to the user that submitted it.
Source: