Skip to content

PrimeNG v18+ with non- standalone components #3506

Discussion options

You must be logged in to vote

You can simply use the providers in your app.module.ts file

Simply import your PrimeNG components as always and use the providePrimeNG Provider in your AppModule providers section.
Here is an example how I archived this

providers: [
provideHttpClient(withInterceptorsFromDi()),
provideAnimationsAsync(),
providePrimeNG({
theme: {
preset: Lara,
options: {
darkModeSelector: '.darkmode',
},
},
}),
MessageService,
ConfirmationService,
TranslateService,
],

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ahuvamore21-git
Comment options

Comment options

You must be logged in to vote
1 reply
@ahuvamore21-git
Comment options

Answer selected by ahuvamore21-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants