I need to develop an application that can dynamically register new Angular Controllers obtained from a script. This application should load the minimum necessary scripts at startup and then fetch additional scripts as needed from other modules.
Here's how it works:
- The application is initialized.
- A menu is presented to the user.
- When an item is clicked, the application checks if the corresponding module is loaded. If not, the necessary scripts are fetched via an http request.
- Upon receiving the scripts, all Controllers / Services must be registered so that the new module's functionalities are accessible through its URLs.