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
Since Angular 16 many of us are moving to standalone components. Any chance usage without modules could be supported?
In the meantime, this is a solution I used to get it working
main.ts
export const appConfig: ApplicationConfig = { providers: [ ... importProvidersFrom(TimeagoModule.forRoot()), ], }; bootstrapApplication(AppComponent, appConfig)...
example.component.ts
@Component({ standalone: true, imports: [CommonModule, TimeagoModule], template: `{{ '2023-08-21T14:54:38.342Z' | timeago }}`, }) export class ExampleComponent { ... }
StackBlitz example
The text was updated successfully, but these errors were encountered:
If you open a PR I'd happily review it
Sorry, something went wrong.
No branches or pull requests
Since Angular 16 many of us are moving to standalone components. Any chance usage without modules could be supported?
In the meantime, this is a solution I used to get it working
main.ts
example.component.ts
StackBlitz example
The text was updated successfully, but these errors were encountered: