<div dir="ltr">After I saw all this comments I wrote a post in my blog explaining how to move something in your Rails app to an AngularJS app.<div><br></div><div>The example I'm using for this time only consumes and renders data, you can see this example working here <a href="http://opendatamdq.com.ar/providers/singlepage">http://opendatamdq.com.ar/providers/singlepage</a>.</div>
<div><br></div><div><a href="http://blog.agustinvinao.com/post/74084133569/rails-angularjs-a-generic-approach">http://blog.agustinvinao.com/post/74084133569/rails-angularjs-a-generic-approach</a><br></div><div><br></div><div>
This post covers:</div><div><ul><li>Create the AngularJS app</li><li>Prepare your rails app</li><li>Define all routes your AngularJS is going to use.</li><li>Define Models/Controllers in your AngularJS app.</li><li>Define your AngularJS view and render data.</li>
</ul><div>My example uses many other things like filters, directives, etc but for now I've started with the most generic things you need to understand to use AngularJS. In this case my approach is try to avoid massive changes in my rails code and do ir all I can to divide my Rails app and my AngularJS app.</div>
</div><div><br></div><div>Thanks and sorry if my english is not good enough, is not my natural language. </div><div><br></div><div>If anyone have any questions, please let me know.</div></div><div class="gmail_extra"><br clear="all">
<div><div dir="ltr"><font color="#999999">-- <br>--</font><div><font color="#999999">Agustin Viñao</font></div><div>
<p><font color="#999999"><b>Paradox</b>: Life is a mystery. Don't waste time trying to figure it out. / <b>Humor</b>: Keep a sense of humor, especially about yourself. It is a strength beyond all measure. / <b>Change</b>: Know that nothing stays the same.</font></p>
</div><div><font color="#999999">Web Developer - Ruby - Javascript</font></div><div><font color="#999999"><br></font></div><div><font color="#999999">m: <a href="mailto:agustinvinao@gmail.com" target="_blank">agustinvinao@gmail.com</a></font></div>
<div><span style="color:rgb(153,153,153)">t: </span><a href="http://twitter.com/agustinvinao" target="_blank">http://twitter.com/agustinvinao</a><br></div><div><span style="font-family:Helvetica;font-size:12px"><font color="#999999">w: <a href="http://www.agustinvinao.com/" target="_blank">http://www.agustinvinao.com</a></font></span></div>
<div><span style="font-family:Helvetica;font-size:12px"><font color="#999999">g</font>: <a href="http://github.com/agustinvinao" target="_blank">http://github.com/agustinvinao</a></span></div><div><div><font color="#999999">l: <a href="http://ar.linkedin.com/in/agustinvinao" target="_blank">http://ar.linkedin.com/in/agustinvinao</a></font></div>
</div><div><font color="#999999">f: <a href="http://www.facebook.com/saltoaciegas" target="_blank">http://www.facebook.com/saltoaciegas</a></font></div><div><span style="color:rgb(153,153,153)">g+: </span><a href="http://profiles.google.com/agustinvinao" target="_blank">http://profiles.google.com/agustinvinao</a><br>
</div></div></div>
<br><br><div class="gmail_quote">On Mon, Jan 20, 2014 at 11:10 PM, Don Werve <span dir="ltr"><<a href="mailto:don@werve.net" target="_blank">don@werve.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Jan 20, 2014, at 18:55 , David Burrows <<a href="mailto:david@designsuperbuild.com">david@designsuperbuild.com</a>> wrote:<br>
<br>
> Jasim, just catching up on this thread, thanks for the extensive notes, massively useful - you should put this up somewhere (blog, company site, whatever) people ask me about Rails/Angular all the time and would love to be able to point them at this.<br>
<br>
</div>I second that, and as an added bonus will tweet the hell out of it to my massive following of ~ 300 people. It's an excellent write-up.<br>
<br>
There's definitely a need for more people that work with Angular to post best practices and real-world production pitfalls and solutions.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</div></div></blockquote></div><br></div>