We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I don't know if it's the new way to export the routes in Angular 16 but the following codes
import { provideRouter, Routes } from '@angular/router'; import { EnvironmentProviders } from '@angular/core'; const routes: Routes = [ { path: 'admin', loadChildren: () => import('../app/admin/admin.routes'), }, { path: 'sample1', loadComponent: () => import('./component/sample1.component') .then((s) => s.Sample1Component), } ]; export const routerProvider = (): EnvironmentProviders => provideRouter(routes);
import { Routes } from '@angular/router'; export default [ { path: 'sample2', loadComponent: () => import('./component/sample2.component') .then((s) => s.Sample2Component), } ] satisfies Routes;
reports Sample1Component and Sample2Component as unused when analysed.
Sample1Component
Sample2Component
The text was updated successfully, but these errors were encountered:
Thanks, I didn't cover that case.
Sorry, something went wrong.
wgrabowski
No branches or pull requests
I don't know if it's the new way to export the routes in Angular 16 but the following codes
reports
Sample1Component
andSample2Component
as unused when analysed.The text was updated successfully, but these errors were encountered: