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

Answer: 31 #1153

Conversation

michalgrzegorczyk-dev
Copy link
Contributor

Checklist for challenge submission

  • Start your PR message with Answer:31

Warning:

  • If you want feedback or review, you must support the project on GitHub:

Alternatively, you can still submit your PR to join the list of answered challenges or to be reviewed by a community member. 🔥

@github-actions github-actions bot added 31 module to standalone answer answer sponsor sponsor the project to be reviewed PR requests a review labels Nov 17, 2024
path: '',
loadComponent: () =>
import('./dashboard/dashboard.component').then(
(m) => m.DashboardComponent,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use the default keyword is you want to avoid the then close. But that's only a proposal, some people prefer it more explicit

@@ -29,5 +32,5 @@ import { Component, Inject } from '@angular/core';
},
})
export class UserShellComponent {
constructor(@Inject(TOKEN) public token: string) {}
token = inject(TOKEN);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing I like to do when I create an injectionToken, is to create a custom inject function, like injectToken(). I feel it's nicer.

@tomalaforge
Copy link
Owner

perfect, you master standalone, routing and nx perfeclty

@tomalaforge tomalaforge removed the to be reviewed PR requests a review label Nov 17, 2024
Copy link

github-actions bot commented Dec 8, 2024

This pull request is stale because it has been open for 15 days with no activity.

@github-actions github-actions bot added the stale label Dec 8, 2024
Copy link

This pull request was closed because it has been inactive for 5 days since being marked as stale.

@github-actions github-actions bot closed this Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
31 module to standalone answer answer sponsor sponsor the project stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants