> javascripts > controllers > direcEves > filters > models > services app.js Structure your client-‐side app similarly as a Rails app. Declare your module in app.js and put the files inside dirs. Or see github.com/angular/angular-‐seed for a server-‐less setup.
is flawed.” – Anonymous Thanks to Dependency InjecEon, tesEng in Angular is easy. Not many client-‐side JavaScript libraries can say that. You should be thankful and do it. “If you don’t like unit testing your product, most likely your customers won’t like to test it either.” - Anonymous
be used also for integraEon tesEng. Usage is similar to Selenium, with async calls in Angular handled automaEcally. h\p://docs.angularjs.org/guide/dev_guide.e2e-‐tesEng
'ui.bootstrap']) > app > assets > javascripts app.js You can load exisEng modules (reusable components) inside your applicaEon by declaring them in the module constructor. Find community-‐submi\ed modules at h\p://ngmodules.org/.
Registrar = railsResourceFactory({url: '/registrars', name: 'registrar'}) # API compaEbility with $resource-‐based service Registrar.prototype.$save = (success) -‐> this.create().then (result) -‐> success(result) return Registrar ]) $resource is a wrapper for REST API calls provided by Angular. railsResource adds Promises, data manipulaEon and interceptors. h\ps://github.com/tpodom/angularjs-‐rails-‐resource