I've been using Angular recently and love it. But this example is not matched evenly with the modular component demonstration of the React tutorial. The equivalent in Angular would be to use directives ( http://docs.angularjs.org/guide/directive ) for the comment list, each comment, and each part of a comment. Passing data between parent and child components (via scope) becomes a little tricky.
Facebook’s New React JavaScript Library Tutorial Rewritten in AngularJS
21–30 of 56 posts
Re: Facebook’s New React JavaScript Library Tutorial Rewritten in AngularJS
#22What I don't understand is how you add login while keeping your REST backend stateless. How do you validate the request and make sure that it comes from the correct user and not just someone who forges the request without keeping a state on the server-side? Normally you just add a session.
Re: Facebook’s New React JavaScript Library Tutorial Rewritten in AngularJS
#23I would like to see a similar tutorial which also covers authentication and how to add security to your app. There are a few but I want to see a really simple one. What I don't understand is how you add login while keeping your REST backend stateless. How do you validate the request and make sure that it comes from the correct user and not just someone who forges the request without keeping a state on the server-side…
http://www.frederiknakstad.com/authentication-in-single-page...
Re: Facebook’s New React JavaScript Library Tutorial Rewritten in AngularJS
#24I would like to see a similar tutorial which also covers authentication and how to add security to your app. There are a few but I want to see a really simple one. What I don't understand is how you add login while keeping your REST backend stateless. How do you validate the request and make sure that it comes from the correct user and not just someone who forges the request without keeping a state on the server-side…
I think Facebook.com does something similar.
Re: Facebook’s New React JavaScript Library Tutorial Rewritten in AngularJS
#25This blog does some interesting stuff if you mouse-wheel-click and drag past an edge.
Re: Facebook’s New React JavaScript Library Tutorial Rewritten in AngularJS
#26I would like to see a similar tutorial which also covers authentication and how to add security to your app. There are a few but I want to see a really simple one. What I don't understand is how you add login while keeping your REST backend stateless. How do you validate the request and make sure that it comes from the correct user and not just someone who forges the request without keeping a state on the server-side…
Just a couple ideas.
Re: Facebook’s New React JavaScript Library Tutorial Rewritten in AngularJS
#27I've been using Angular recently and love it. But this example is not matched evenly with the modular component demonstration of the React tutorial. The equivalent in Angular would be to use directives ( http://docs.angularjs.org/guide/directive ) for the comment list, each comment, and each part of a comment. Passing data between parent and child components (via scope) becomes a little tricky.
I am relatively new to Angular, but wouldn't you want to have the comments be a Factory using ngResource? If the comments are restful then it seems much easier.
Re: Facebook’s New React JavaScript Library Tutorial Rewritten in AngularJS
#28Re: Facebook’s New React JavaScript Library Tutorial Rewritten in AngularJS
#29Just had try doing a KnockoutJS version of this also : http://anexiledderryman.com/post/51714264769/facebooks-new-r...
Re: Facebook’s New React JavaScript Library Tutorial Rewritten in AngularJS
#30Earlier quoted context omitted.
I am relatively new to Angular, but wouldn't you want to have the comments be a Factory using ngResource? If the comments are restful then it seems much easier.
Theoretically yes, but ngResource is kind of the achilles' heel of AngularJS right now. You're often better off using a different library or making your own class with $http requests.