Giter Club home page Giter Club logo

grails-angularjs-resources's Introduction

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. To autobind AngularJS to the page require 'angular-autobind' module in the template.

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).

Installation

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.

Documentation

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

License

Licensed under the terms of the Apache License, Version 2.0

grails-angularjs-resources's People

Contributors

musketyr avatar smartiniongithub avatar

Watchers

 avatar  avatar

Forkers

guibot17

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.