AngularJS & Rails - Seperated apps/deployments or one app? -


most of resources/example rails , angular on internet put them together. angularjs goes inside of rails under app/assets. feels reeeaaaly dirty me. idea? if decide @ time won't using rails , move to, don't know, sinatra? how hard port?

what pros/cons of everthing in single rails app , pros/cons 2 seperated apps?

thank you!

even when placing angular (or other client-side mv* framework) inside rails app, pretty keeping separation of concerns intact. is, have rails api serving json (or similar) data, , separate javascript framework using data render appropriate views. if ever wanted use different server-side api, can so, , still utilize entire javascript directory is.

placing client side framework in rails matter of convenience. comes organized directory structure , ability serve html, you're using when comes views. again, these views aren't tied rails, they're html , javascript, can move them different platform when necessary.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -