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

Issue with PrimeNG 19 Integration and Styling in Angular 19 Project #17789

Open
ji2026 opened this issue Feb 28, 2025 · 1 comment
Open

Issue with PrimeNG 19 Integration and Styling in Angular 19 Project #17789

ji2026 opened this issue Feb 28, 2025 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@ji2026
Copy link

ji2026 commented Feb 28, 2025

I am currently working on integrating PrimeNG 19 into my Angular 19 project. I followed the installation guide provided on the PrimeNG website (https://primeng.org/installation) and configured my app.config.ts
as follows:

import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import { provideRouter } from '@angular/router';
import { provideAnimations } from "@angular/platform-browser/animations"

import { routes } from './app.routes';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import { providePrimeNG } from 'primeng/config';
import material from '@primeng/themes/material';
import { provideHttpClient, withInterceptors } from '@angular/common/http';
import { authInterceptor } from './shared/services/auth-interceptor.service';

export const appConfig: ApplicationConfig = {
providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes),
provideAnimations(),
provideAnimationsAsync(),
provideHttpClient(withInterceptors([authInterceptor])),
providePrimeNG({
theme: {
preset: material
}
})
]

};

However, I am encountering an issue with the styling of PrimeNG components, specifically the DialogModule. When I insert the DialogModule into my project, the design does not appear as expected, unlike the demo on the PrimeNG website (https://primeng.org/dialog).

I would greatly appreciate any assistance or guidance you can provide to resolve this issue.

Thank you in advance for your support.

@github-actions github-actions bot added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 28, 2025
@Eptick
Copy link

Eptick commented Feb 28, 2025

Duplicate of #17760

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants