Demo 1
Basic demo ported to AngularJS 1.0.1 to run on Grails 1.3.7 with the JAXRS plugin (0.5-m1).
I added the Reload List button to refresh the Wine List.
Note: using the JAXRS plugin I noticed that the first time you save a record, the listing does
not show the newly added record even though it has been correctly saved in the database.
Demo 1
Demo 2
In this version, we use only 1 controller and all the templates are load in. No routing is used.
Also, I use a Message box/display to error message and alerts.
Demo 2
Demo 3
For this version, I use dynamic template loading and I will show one template at a time (listing or editing).
Demo 3
Demo 4
For the final version, I modify the JAXRS component to return error messages which the
Angular JS page will display on the page. I also added the Angular checking to ensure that
the required field has been filled in before saving. This requires changes to the JAXRS
Resource files within the Grails application.
Demo 4
Demo 5
This is a new variation which allows for a datagrid or table inline editing, searching and sorting
of a list of records. The sorting is rudimentary (by clicking on the column headers) to sort
the records in ascending order of the column value. Also, the changes performed will not be
saved until the Save button is clicked.
Demo 5