Angularjs UL Router URL Change URL Without Rendering

Does anyone know how to change the url in Angular UI-Router without rendering or changing state?

+8
angularjs angular-ui-router
source share
1 answer

You can change the URL without changing the state using:

$location.path("your/path/123").replace() 

Or:

 $state.go("my.state", {location: true, notify: false, reload: false}). 

Source: https://github.com/angular-ui/ui-router/issues/64 (last few answers)

General information. After creating the model and obtaining the identifier, save it in local storage. Then, if the user visits later or reboots, just check which identifier he last edited and changed state. You can offer the user to start from scratch by simply deleting the local Storage key and rebooting it.

+7
source share

All Articles