0

I'm using Angular's UI-router. All my routes looks like that: /:name/.... for example /:name/test/:id, /:name/logs, /:name/list/:id

I want to change the name part when I click on a button, and reload the page. How can i do that globally without knowing exactly what route I'm in ?

1 Answer 1

2
$state.go($state.current, { name, 'newValue' }); 

Or something similar with ui-sref.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.