AngularJS - Best way to update $route parameter
问题 I have several routes that are different, but contain similar parameters. Example: when '/user/:accountId/charts/:chartType', controller:ChartsController when '/manager/:accountId/charts/:chartType', controller:ChartsController when '/whatever/pathy/paththingy/charts/:chartType', controller:ChartsController Notice all three views use the same Charts Controller to control the view. Its a fairly generic controller but it needs toggle between available chartTypes... while keeping the rest of the