angular / router

The Angular 1 Component Router
MIT License
665 stars 135 forks source link

Document how to use with md-tabs and update to $location.path without controller reload #341

Open nalbion opened 9 years ago

nalbion commented 9 years ago

What is the best way to update the $location.path value (from a tab, for example) without requiring the reload of the controller?

The following link provides a work-around for ng-route, but it would make sense for this to be supported "out-of-the-box"

http://stackoverflow.com/questions/14974271/can-you-change-a-path-without-reloading-the-controller-in-angularjs

nalbion commented 9 years ago

https://github.com/angular-ui/ui-router/issues/427

links to:

https://github.com/angular-ui/ui-router/blob/c72d8ce11916d0ac22c81b409c9e61d7048554d7/src/urlRouter.js#L212-L242

tkrotoff commented 9 years ago

See issue "Option on $location to allow hash/path change w/o reloading the route" from AngularJS repo: https://github.com/angular/angular.js/issues/1699

Duplicate of issue #37?