Add functions to angular controllers.