0

I need to put into Grails 2.4.4 this:

I saw some plugins for Grails that add AngularJS but none that add AngularJS UI's. How to simply put this together?

1 Answer 1

1

If you are adopting AngularJS as your front-end single-page framework, and Grails as your REST API server, for the separation of concerns I would adopt a separate package manager like bower for managing the dependencies that are required on the client side and use Grails plugins only for managing server-side dependencies. At some point Grails might become a bottleneck for managing client-side plugins.

It does not necessarily imply that you cannot automate the process of dependency management by using task runners like Grunt as this interesting blog post points out.

Sign up to request clarification or add additional context in comments.

4 Comments

If I understand correctly, after downloading packages by bower into web-app/bower-components, I don't need to change anything in grails for him to see AngularJS packages? Honestly, my project isn't big so I suppose that I don't need separate package manager.
if you are using the asset-pipeline-plugin you should put your static assets under grails-app/assets/javascripts. you can reference your assets in your .gsps with this syntax: <asset:javascript src="application.js"/>. If you don't mind hosting these static assets you might consider using a CDN.
I hope my original post did answer your question by the way.
For now I'll try CDN and include them in layout. This would be simplest way I suppose. Thanks for help ;]

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.