I have #/load-data
view with spinner. When data load is complete controller redirects to differen view $location.path('/show-info/')
.
How to remove #/load-data from history to avoid window.history.back()
to #/load-data view?
相关问题
- angularJS: ui-router equivalent to $location.searc
- Separate AngularJS Controllers Into Separate Files
- Angular ngAnimate not working first time on page l
- Ionic Spinner not showing up
- Upload file to Google Cloud Storage using AngularJ
相关文章
- Passing variable through URL with angular js
- Watch entire object (deep watch) with AngularJS
- Angular ng-if change span text
- Can ng-show directive be used with a delay
- AngularJS $routeParams vs $stateParams
- Multiple parameters in AngularJS $resource GET
- How to set class/style of accordion heading in Ang
- PUT to S3 with presigned url gives 403 error
You could use the
$location.replace()
method to replace the last history entry.Here is the link to the documentation.
So when you are showing the spinner, you could switch to the actual view
show-info
with the following lines:Or shorter: