Angular/UI-Router – How Can I Update The URL Without Refreshing Everything?

The code snippets you’ve used are a bit far from the correct ui-router settings. I would suggest to you, check this demo application: http://angular-ui.github.io/ui-router/sample/#/contacts/1. Here we can see how the List is “fixed” while Detail is changed without any page refresh.

The code of this example download here https://github.com/angular-ui/ui-router/tree/master/sample.

What should help a lot to understand HOW TO (except the wiki) was this code snippet: state.js. Load the demo, read through this commented explanation. And ui-router will make sense…

Leave a Comment