An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Hola, Playlists.

![2MB animated screenshot :)](./attrezzo/hola-playlists-2.gif)

![2MB animated screenshot :)](./attrezzo/hola-playlists.gif)

## 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