Provide ThemeConfig
|
These changes are required for apps using PrimeNG only. |
Since version 6 of OneCX to apply PrimeNG theming it is required to add an additional provider to the Microfrontends and Remote Components.
Microfrontend theme configuration
-
import
provideThemeConfigprovider from@onecx/angular-utilsinmodule.tsfile -
define
provideThemeConfigprovider inNgModuleprovidersarray
import { provideThemeConfig } from '@onecx/angular-utils'
...
@NgModule({
providers: [
provideThemeConfig()
]
}) export class MyMfe {}
Remote components theme configuration
-
import
provideThemeConfigprovider from@onecx/angular-utilsinbootstrap.tsfile -
define
provideThemeConfiginbootstrapRemoteComponentfunctionprovidersarray from@onecx/angular-webcomponents
import { provideThemeConfig } from '@onecx/angular-utils'
bootstrapRemoteComponent(RemoteComponent, 'my-remote-component', environment.production, [
provideThemeConfig()
])
Provide theme overrides
In angular 19+ OneCX is creating its own theme presets per App that utilize PrimeNG theming. If the look and feel of some PrimeNG components is not matching the expectations, developers should use theme overrides to change them.
More about how to override the theme elements can be found in theming documentation.