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