On Mon, Feb 3, 2014 at 1:20 PM, Arun kant sharma <iarunk...@gmail.com> wrote: > What is best practice to use angular with rails 4. I can think of following: > > Create an JSON API only rails app and deliver a single page app to client > and angular take care of talking to API. > Create an normal rails app with API which delivered through api.domain.com. > Serve single page app and angular talk to api. (turbolinks can cause > problems, but at least browser without json support can view a html page > rendered by server) > Same as 2 but instead single page app, each rendered view is treated as > mini-SPA, I don't think it will be very helpful. > > So what is best practice to use angular with rails 4. > > I think this post is not particular to angularjs and seek best integration > with client side MV* frameworks(like knockout and others). > > I am creating a new application so I can decide early and choose best > practice early and don't have to undo already made decisions if it was a > existing application.
I haven't delved into AngularJS yet, but there have been a spate of articles out on using Angular with Rails, many of them with "Best Practices" in the title. My collection is in disarray at the moment, but I am sure a google of "Rails and AngularJS Best Practices" turns up a lot of hits. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAHUC_t8Tjk0kEcTtw9b9n4ta9K5xU5inX%2BNLoV7o4sS6UyUwyg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.