News for hackers. Stuff that matters.
Re:Little-known directives of Angular.js by crucialfelix on Wednesday November 06, 2013 @12:34PM (#6683926)
ui-view does indeed look quite interesting. but the description didn't really explain it for me.

a simplified description is that its a router for multiple-panes. where different related states can make use of inheritance.

http://txt.fliglio.com/2013/05/angularjs-state-management-wi...

http://jsfiddle.net/benschwartz/LhydD/

Re:Little-known directives of Angular.js by sheerun on Wednesday November 06, 2013 @01:45PM (#6684528)
I like your description. Indeed one of the best things about ui-view is that states can be inherited.

Say you want to load search.results.details, and it will render search page first, then results inside, then details.

Also, in sub-states you can use templates defined in parent-state template. It means you don't need to render cache templates all at once. Just for sub-states.