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?

Belphegor
  • 82
  • 7

1 Answers1

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.

PhilMr
  • 475
  • 1
  • 5
  • 13
  • 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. – Belphegor Apr 29 '15 at 07:29
  • if you are using the [asset-pipeline-plugin](https://grails.org/plugin/asset-pipeline) you should put your static assets under grails-app/assets/javascripts. you can reference your assets in your .gsps with this syntax: ``. If you don't mind hosting these static assets you might consider using a CDN. – PhilMr Apr 29 '15 at 09:43
  • I hope my original post did answer your question by the way. – PhilMr Apr 29 '15 at 10:44
  • 1
    For now I'll try CDN and include them in layout. This would be simplest way I suppose. Thanks for help ;] – Belphegor Apr 29 '15 at 12:42