Open
Description
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 { ... }
Metadata
Assignees
Labels
No labels
Activity