Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@schematics/angular): prevent importing RouterModule parallel to RoutingModule #23486

Merged
merged 1 commit into from Jul 6, 2022

Conversation

alan-agius4
Copy link
Collaborator

@alan-agius4 alan-agius4 commented Jul 1, 2022

Prior to this commit, we defined routes in two places example:

@NgModule({
  declarations: [
    HomeComponent
  ],
  imports: [
    CommonModule,
    RouterModule.forChild(routes),
    HomeRoutingModule
  ]
})
export class HomeModule { }

Closes #17139

@alan-agius4 alan-agius4 added action: review target: patch 2022Q3 Fixit labels Jul 1, 2022
@alan-agius4 alan-agius4 force-pushed the lazy-route-module-routing branch 2 times, most recently from 90b0446 to a279248 Compare Jul 1, 2022
@alan-agius4 alan-agius4 requested a review from clydin Jul 1, 2022
…o `RoutingModule`

Prior to this commit, we defined routes in two places example:
```ts
@NgModule({
  declarations: [
    HomeComponent
  ],
  imports: [
    CommonModule,
    RouterModule.forChild(routes),
    HomeRoutingModule
  ]
})
export class HomeModule { }
```

Closes angular#17139
@alan-agius4 alan-agius4 force-pushed the lazy-route-module-routing branch from a279248 to 06bbedb Compare Jul 6, 2022
clydin
clydin approved these changes Jul 6, 2022
@alan-agius4 alan-agius4 added action: merge and removed action: review labels Jul 6, 2022
@alan-agius4 alan-agius4 merged commit 9e31524 into angular:main Jul 6, 2022
13 checks passed
@alan-agius4 alan-agius4 deleted the lazy-route-module-routing branch Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2022Q3 Fixit action: merge target: patch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants