Separating Angularjs and Rails apps as standalone components -


i wanted try out angularjs. however, have been trouble deciding on should located angular app.

i using rails framework backend. have seen tutorials entire angular app lives under assets/javascript folder.

i wondering if instead of living within assets/javascript folder, make live outside rails directory entirely. way, can potentially separate backend , front end entirely. (is recommended?).

i believe asset pipeline precompiles lot of assets. if separate out angularjs asset, need precompile assets somehow?

thanks

you use grunt based workflow:

if start decoupled frontend, use mocks @ first can stay within angular , not lose focus switching between backend , frontend logic. advantage of building single page application can develop independently of backend api. see (http://docs.angularjs.org/api/ngmocke2e.$httpbackend) information mocking http responses.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -