https://github.com/twilightcoders/angular-rails
The angular.js JavaScript library ready to play with the Rails Asset Pipeline
https://github.com/twilightcoders/angular-rails
Last synced: 11 months ago
JSON representation
The angular.js JavaScript library ready to play with the Rails Asset Pipeline
- Host: GitHub
- URL: https://github.com/twilightcoders/angular-rails
- Owner: TwilightCoders
- License: other
- Created: 2015-10-10T20:42:56.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-11T01:25:25.000Z (almost 11 years ago)
- Last Synced: 2025-08-09T17:54:54.200Z (12 months ago)
- Language: Ruby
- Size: 9.36 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
angular-rails wraps the [Angular.js](http://angularjs.org) library for use in Rails 3.1 and above. Assets will minify automatically during production.
## Usage
Add the following to your Gemfile:
gem 'angular-rails'
Add the following directive to your JavaScript manifest file (application.js):
//= require angular/core
If you desire to require (optional) Angular files, you may include them as well in your JavaScript manifest file (application.js). For example:
//= require angular/animate
//= require angular/resource
To use the any internationalization/localization (i18n), you may include them as well in your JavaScript manifest file (application.js):
//= require angular/i18n/en-us
// ...
//= require angular/i18n/ga
## Versioning
Every attempt is made to mirror the currently shipping Angular.js version number wherever possible.
The major, minor, and patch version numbers will always represent the Angular.js version.
## IMPORTANT: Requesting upgrades for new Angular.js versions
I've heavily adapted an auto-updater originally created by [Nick Clark](https://github.com/NickClark) that will upgrade the package to the latest version. To request that the latest version of Angular.JS be pushed as a gem to RubyGems, you're welcome to fork, run the updater, and then open a pull request, or you can open an issue.