Closed sivathangeswaran closed 10 years ago
I want to have a route defined like below.
I use below configuration, but $stateParams.id shows undefined
{ name: "home", url: "/home", templateUrl: "/templates/uiRouterDemoHome.html", controller: "uiRouterDemoController", children: [ { name: "contacts", url: "/contacts", templateUrl: "/templates/contactsList.html", controller: "contactListController", children: [ { name: ":id", url: "/:id", templateUrl: "uiRouterDemo/templates/contactsList.html", controller: "contactListController" } ] } ] }
I would use 'details' as name instead of ':id'. Apart from that I see nothing wrong with this. Let me know if you still have problems with this.
I want to have a route defined like below.
I use below configuration, but $stateParams.id shows undefined