I am running on grails 2.3.4
and though about integrating angularjs in my next application.
I think the best way from the server side is to use grails REST
integration in the domain and controller classes.
However here I am stuck.
How to get grails to communicate with angularjs?(over the index.gsp
?, If so how to integrate it?) What would be a good architecture?
I really appreciate your answers!!!
PS.: I know that there is a grails angular js plugin. However I do see any reason for using that!
We have two projects as two separate worlds. The first project, the server side, is in grails. We are creating 'restful' services. This project knows nothing about angular or resource plugin or asset pipeline; not even uses gsp views, only json
responses. In future we can to use that 'api' to build mobile clients or to exchange information with another service, etc.
The other side, the client, knows nothing about grails. It's all statics pages with html 5
, javascript and angularjs framework.
I believe that 'it' is the paradigm that everybody will begin to adopt from now.