28 ms·
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-pa
by crucialfelix 13y ago
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-with-ui-router/ http://txt.fliglio.com/2013/05/angularjs-state-management-wi...
http://jsfiddle.net/benschwartz/LhydD/ http://jsfiddle.net/benschwartz/LhydD/
- sheerun 13y agoI 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.