-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrations: lazy-loading &signal-queries
_____ ng generate @angular/core:route-lazy-loading β Which path in your project should be migrated? . π Automated migration step has finished! π Number of updated routes: 6 Number of skipped routes: 0 IMPORTANT! Please verify manually that your application builds and behaves as expected. See https://angular.dev/reference/migrations/route-lazy-loading for more information. UPDATE src/app/app.routing.ts (589 bytes) _____ ng generate @angular/core:signal-queries-migration β Which directory do you want to migrate? ./ β Do you want to migrate as much as possible, even if it may break your build? yes Preparing analysis for: src/tsconfig.app.json.. Preparing analysis for: projects/ng-select2-component/tsconfig.lib.json.. Preparing analysis for: src/tsconfig.spec.json.. Preparing analysis for: projects/ng-select2-component/tsconfig.spec.json.. Scanning for queries: src/tsconfig.app.json.. Scanning for queries: projects/ng-select2-component/tsconfig.lib.json.. Scanning for queries: src/tsconfig.spec.json.. Scanning for queries: projects/ng-select2-component/tsconfig.spec.json.. Processing analysis data between targets.. Migrating: src/tsconfig.app.json.. Migrating: projects/ng-select2-component/tsconfig.lib.json.. Migrating: src/tsconfig.spec.json.. Migrating: projects/ng-select2-component/tsconfig.spec.json.. Applying changes.. Successfully migrated to signal queries π Successfully migrated to signal queries π -> Migrated 6/6 queries.
- Loading branch information
Showing
3 changed files
with
48 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { RouterModule, Routes } from '@angular/router'; | ||
|
||
import { AppExamplesComponent } from './app-examples.component'; | ||
import { AppGenComponent } from './app-gen.component'; | ||
|
||
const routes: Routes = [ | ||
{ path: 'examples', component: AppExamplesComponent }, | ||
{ path: 'generator', component: AppGenComponent }, | ||
{ path: '**', component: AppExamplesComponent }, | ||
{ path: 'examples', loadComponent: () => import('./app-examples.component').then(m => m.AppExamplesComponent) }, | ||
{ path: 'generator', loadComponent: () => import('./app-gen.component').then(m => m.AppGenComponent) }, | ||
{ path: '**', loadComponent: () => import('./app-examples.component').then(m => m.AppExamplesComponent) }, | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forRoot(routes)], | ||
exports: [RouterModule], | ||
}) | ||
export class AppRoutingModule {} | ||
export class AppRoutingModule {} |