79415199

Date: 2025-02-05 15:07:51
Score: 2
Natty:
Report link

@MoInMaRvZ answered this here

We can simply add the code directly in the app.module.ts file. Like this:

 providers: 
    [
        provideHttpClient(withInterceptorsFromDi()),
        provideAnimationsAsync(),
        providePrimeNG({
        theme: {
        preset: Lara,
        options: {
        darkModeSelector: '.darkmode',
        },
        },
        }),
    ]
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @MoInMaRvZ
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: more21