|
|
|
|
|
by scotty79
4313 days ago
|
|
For me react does one thing and does it well introducing clear architecture focused on composability. Angular has some fair parts (testing, resources) and some really convoluted and what's more important bug ridden parts (directives and scopes). |
|
Do you want composability? Write a bunch of element directives and nest them -- it'll end up looking almost exactly like React's classes and components. The main difference is that in React you throw away MVC and replace with with a big ol' render() function that spits out "HTML" (well, a shadow-DOM version of it anyway)
Scopes are just objects that use prototypal inheritance to inherit from outer scopes. Create an new (isolated) scope in your directive to isolate data to that component and its subcomponents.
Also, using AngularUI Router is essential.