Allow Horizon plugins to use angular
Angular is currently bootstrapped with a hard coded list of modules. Horizon plugins for dashboards or panels may want to use Angular framework as well. Currently this is impossible without editing angular/horizon.js file.
This blueprint proposes how extension facility of horizon can be used to also register new Angular modules.
Blueprint information
- Status:
- Complete
- Approver:
- David Lyle
- Priority:
- High
- Drafter:
- Rob Raymond
- Direction:
- Approved
- Assignee:
- Rob Raymond
- Definition:
- Approved
- Series goal:
- Accepted for juno
- Implementation:
- Implemented
- Milestone target:
- 2014.2
- Started by
- Rob Raymond
- Completed by
- Julie Pichon
Related branches
Related bugs
Sprints
Whiteboard
Proposal:
Add a new setting that extensions can use in their enabled file to add Angular modules
``ADD_ANGULAR_
-------
A list of AngularJS modules to be loaded when Angular bootstraps. These modules
are added as dependencies on the root Horizon application ``hz``.
``ADD_ANGULAR_
-------
A list of javascript files to be included in the compressed set of files that are
loaded on every page. This is needed for AngularJS modules that are referenced in
``ADD_ANGULAR_
Gerrit topic: https:/
Addressed by: https:/
Allow extensions to add Angular modules
[jpichon 2014.06.10] It looks like the patch was merged, can this blueprint be marked as Implemented or is there more work remaining?
...Looks like the Settings from the proposal are both implemented in the patch so updating status to implemented, feel free to correct it if I got it wrong. Thanks!