Title: Router RC1 router.navigate fails but routerLink works · Issue #11004 · angular/angular · GitHub
Open Graph Title: Router RC1 router.navigate fails but routerLink works · Issue #11004 · angular/angular
X Title: Router RC1 router.navigate fails but routerLink works · Issue #11004 · angular/angular
Description: [ x] bug report [ ] feature request [ ] support request Current behavior I have a parent component with child components I load with loadChildren -parent -child - child-child1 - child-child1-childA Child has a module router . When I try ...
Open Graph Description: [ x] bug report [ ] feature request [ ] support request Current behavior I have a parent component with child components I load with loadChildren -parent -child - child-child1 - child-child1-childA...
X Description: [ x] bug report [ ] feature request [ ] support request Current behavior I have a parent component with child components I load with loadChildren -parent -child - child-child1 - child-child1-childA...
Opengraph URL: https://github.com/angular/angular/issues/11004
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Router RC1 router.navigate fails but routerLink works","articleBody":"[ x] bug report\n[ ] feature request\n[ ] support request \n\n**Current behavior**\n\nI have a parent component with child components I load with loadChildren\n-parent\n -child\n - child-child1\n - child-child1-childA\n\nChild has a module router . When I try navigating to child-child1-childA from child-child1 programaticaly using router.navigate I get \"Error: Cannot match any routes: \" but when i use routerLink it works .\n\nchild-child1 has a module router that looks like this \n\nexport const routing = RouterModule.forChild([\n\n {path :'' , component:ChildChild1Component},\n\n {path:'child_Child1_ChildA',loadChildren:'path_to_module'}\n\n]);\n\n**Please tell us about your environment:**\n- **Angular version:** 2.0.0-rc.1\n _**Angular 2 router version_\\* 3.0.0-rc.1\n- **Browser:** [Chrome ] \n- **Language:** [all | TypeScript X.X | ES6/7 | ES5] \n","author":{"url":"https://github.com/tessSnap","@type":"Person","name":"tessSnap"},"datePublished":"2016-08-23T12:14:54Z","url":"https://github.com/angular/angular/issues/11004"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:19c49af8-94e1-ccde-8d30-49aa9e8a9bb2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB2C:EA09B:12E24A0:190AF20:6B0122ED |
| html-safe-nonce | dc8a95b20923be5118ecdbafdf665198942eae04fe211d42c65fe715d24f68cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjJDOkVBMDlCOjEyRTI0QTA6MTkwQUYyMDo2QjAxMjJFRCIsInZpc2l0b3JfaWQiOiIyNTM0MDgxMzk1NjM5MjYzOTgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b58376c8e35dba7e97c46fed10bb0fe51ae82e5b56aeaa99747961544d7adde8 |
| hovercard-subject-tag | issue:172683545 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/11004/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d8734064bb6c2ab63492afa03adbaf6584df8052c657bd92ce33319984763717/angular/angular/issues/11004 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d8734064bb6c2ab63492afa03adbaf6584df8052c657bd92ce33319984763717/angular/angular/issues/11004 |
| og:image:alt | [ x] bug report [ ] feature request [ ] support request Current behavior I have a parent component with child components I load with loadChildren -parent -child - child-child1 - child-child1-childA... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tessSnap |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width