https://github.com/vicentereig/nr-workshop
New Relic's Angular Workshop Sample App
https://github.com/vicentereig/nr-workshop
Last synced: about 1 month ago
JSON representation
New Relic's Angular Workshop Sample App
- Host: GitHub
- URL: https://github.com/vicentereig/nr-workshop
- Owner: vicentereig
- Created: 2014-02-10T05:01:48.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-02T20:22:28.000Z (almost 11 years ago)
- Last Synced: 2023-03-11T09:12:24.041Z (about 2 years ago)
- Language: JavaScript
- Homepage: http://hola-playlists.herokuapp.com/#/library
- Size: 7.25 MB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hola, Playlists.


## New Relic's Angular Workshop
The main purpose of this Rails project is to serve the JavaScript assets which make up the client side app.
### Quick Start
```
git clone [email protected]:vicentereig/nr-workshop.git
cd nr-workshop
rbenv install 2.1.1
bundle install
rails s
```### Project Layout
1. `app/view/application/index.html.haml`: Bootstraps the angular app main module defined in `app/assets/javascripts/application/app.js`.
2. `app/assets/javascripts/application/index.js`: Rails Asset Pipeline manifest defining third party dependencies. http://guides.rubyonrails.org/asset_pipeline.html#using-index-files
5. `app/assets/javascripts/application/routes/routes.js`: Tells the main route to instantiate the root controller and bind it to `application/templates/library/index.html`### References
1. `dotJEM/angular-routing`: https://github.com/dotJEM/angular-routing
2. http://dotjem.github.io/angular-routing/#/docs/api/dotjem.routing.$state
2. `$watch` documentation: http://docs.angularjs.org/api/ng.$rootScope.Scope#methods_$watch
3. `$watchCollection` documentation: http://docs.angularjs.org/api/ng.$rootScope.Scope#methods_$watchcollection
4. Sharing data between controllers using `$scope` inheritance: https://egghead.io/lessons/angularjs-sharing-data-between-controllers