Proper handling of angular controllers.