Material from Vu Dinh Khoi (a developer at Silicon Straits Saigon)
"I'm a Rails developer. I've just started to do AngularJS for 2 weeks and I feel really excited with the way Angular do to design client-side applications. And I just want to share about 'How to integrate AngularJS to Rails', so easy."
Connect with him here: http://www.linkedin.com/pub/khoi-vu-dinh/5a/6a/276
4. jQuery
AngularJS
different in approachs
•
Library
•
Design a page, and then you make it dynamic
•
•
•
Framework
Design your application in ‘Angular way’
Should only do DOM manipulation in a directive extensions of HTML
jQuery & AngularJS can work together, but we should stop using jQuery, try to think about how to
do in Angular way
http://net.tutsplus.com/tutorials/javascript-ajax/5-awesome-angularjs-features/
9. and how I do
/app
--/assets
----/javascripts
------/controllers
--------/<module>/
<Action>Ctrl.js.coffee
--------/<module>.js.coffee.erb
----/templates
------/<module>/<action>.html.haml
...
/public
...
●
Use rails to compile app
●
More simple, don’t use
extra tools, less build step,
minification included