[openstack-dev] [Horizon] Introduction of AngularJS in membership workflow
jomara at redhat.com
Mon Nov 11 19:21:49 UTC 2013
On November 11th, we submitted a patch to introduce AngularJS into
Horizon . We believe AngularJS adds a lot of value to Horizon.
First, AngularJS allows us to write HTML templates for interactive
elements instead of doing jQuery-based DOM manipulation. This allows
logic, template, DOM manipulation), and eases the on-boarding for new
Second, AngularJS is not an all or nothing solution and integrates
with the existing Django templates. For each feature that requires
a template to define our view and a controller to contain the business
logic. Then, we can add this directive to the existing template. To
see an example in action look at _workflow_step_update_member.html
. It can also be done incrementally - this isn't an all-or-nothing
approach with a massive front-end time investment, as the Angular
components can be introduced over time.
Finally, the initial work to bring AngularJS to Horizon provides a
springboard to remove the "DOM Database" (i.e. hidden-divs) used on
the membership page (and others). Instead of abusing the DOM, we can
instead expose an API for membership data, add an AngularJS resource
(i.e. reusable representation of API entities) for the API. The data
can then be loaded data asynchronously and allow the HTML to focus on
expressing a semantic representation of the data to the user.
Please give our patch a try! You can find the interactions on
Domains/Groups, Flavors/Access(this form does not seem to work in
current master or on my patch) and Projects/Users&Groups. You should
notice that it behaves...exactly the same!
We look forward to your feedback.
Jordan O'Mara & Jirka Tomasek
Jordan O'Mara <jomara at redhat.com>
Red Hat Engineering, Raleigh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 490 bytes
Desc: not available
More information about the OpenStack-dev