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

Add support for standalone components and new bootstrapApplication #274

Open
Den-dp opened this issue Nov 9, 2022 · 0 comments
Open

Add support for standalone components and new bootstrapApplication #274

Den-dp opened this issue Nov 9, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Den-dp
Copy link

Den-dp commented Nov 9, 2022

What is this feature?

In the future, it would be cool to add support for standalone components with their new bootstrapApplication function

FYI for the following code

const routes: Routes = [
  {
    path: '',
    pathMatch: 'full',
    redirectTo: 'home',
  },
  {
    path: 'home',
    component: TodosPageComponent,
  },
  {
    path: 'github',
    loadComponent: () =>
      import('./app/github-page.component').then((m) => m.GithubPageComponent),
  },
];

bootstrapApplication(AppComponent, {
  providers: [provideRouter(routes)],
}).catch((err) => console.error(err));

right now it shows the error and gets stuck on Parsing routes... step

> ng g @routerkit/core:parse --project ng-query-demo
√  Project analyzed.
-  Parsing routes...

Can't find bootstrapModule expression in src/main.ts

/  Parsing routes...
@Den-dp Den-dp added the enhancement New feature or request label Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant