Answer the question
In order to leave comments, you need to log in
How to get a parameter from a nested route?
Hello!
There is a main route. There are 5 nested routes to it. Nested routes have a parameter ($stateParams.form_id) that needs to be pulled into the parent one.
How to do it (without $rootScope etc.)?
The code:
.state('forms', {
url: "/forms/:company_id/"
}
.state('forms.view_1', {
url: "1/view/:form_id"
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question