Skip to content
Grails AngularJS Plugin
Groovy CSS HTML JavaScript Batchfile

Grails AngularJS Resources Plugin

This plugin adds AngularJS resources to a Grails Application.

It uses Grails Resources Plugin to handle resources gracefully. Just let your AngularJS resources (services, controllers etc.) depend on 'angular' module and it's done.

There is also controller for AngularJS scenario testing. Just navigate to <app>/nge2e/<scenario-module-name> to see the results. The scenario module must depend on 'angular-scenario'.

The plugin serves minified version for environments other than development. If jQuery plugin is installed it automatically depends on it (inspired by great Grails Twitter Bootstrap Plugin).


In BuildConfig.groovy of the webapp, under the plugins section (at the end of the file) add:

runtime ":angularjs-resources:<version>"

then run grails refresh-dependencies, grails clean , then grails compile , and the plugin should be installed. In case of Errors during plugin installation, Set log level to 'warn' in BuildConfig.groovy to get more information, and retry. Instead of the compile it's possible even to use runtime, and in that case simply running a grails console should be enough.


See the Plugin documentation (sources under src/docs/), or the "live" version here: grails-angularjs-resources docs

Home Page for the project (and sources) on GitHUB: grails-angularjs-resources


See the inline test web application (sources under test/webapp/) here: grails-angularjs-resources-test


Licensed under the terms of the Apache License, Version 2.0

Something went wrong with that request. Please try again.