-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
Description
Overview of the problem
We have several functions declared globally in controller files.
This can create issues hard to anticipate and solve.
Description
- We need to move all functions into scope.


- We need to make sure the functions aren't used in any other file (if so, we should create an AngularJS service to be shared between the controllers)
- Sanity after the cleanup - check most screens and buttons don't raise exceptions related to missing functions.
Expected behavior
Functions should be scoped
Actual behavior
Functions are declared outside of AngularJS's controllers call back