Chapter 13. Single-page web applications (and other UI stuff)

This chapter covers

  • Why single-page apps are popular
  • Advanced Grails layouts and Ajax facilities
  • How to manage Grails UI resources
  • Modern web app architecture with AngularJS

In chapter 12, we took you through the basics of designing and implementing RESTful API endpoints in your Grails application. And one of the most common consumers of those RESTful endpoint is likely to be a rich web-client application. In this chapter you build exactly that—adding rich desktop-like services to your Grails web tier that leverage today’s hottest JavaScript frameworks and latest web app architecture trends.

But before you leap into the code, let’s consider “What exactly are Single-Page Applications ...

Get Grails in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.