Adjust Standalone Mode
In OneCX v6, the @onecx/standalone-shell library has been renamed to @onecx/angular-standalone-shell.
Replace <ocx-portal-viewport> from '@onecx/portal-integration-angular' with <ocx-standalone-shell-viewport> from @onecx/angular-standalone-shell.
Starting with v6, standalone applications must register their providers using provideStandaloneProviders().
Update Imports and Providers
-
Install
@onecx/angular-standalone-shellif not already installednpm install @onecx/angular-standalone-shell -
Replace
<ocx-portal-viewport>tag with<ocx-standalone-shell-viewport>. -
Update all imports from
@onecx/standalone-shellto@onecx/angular-standalone-shell -
Import
StandaloneShellModulefrom@onecx/angular-standalone-shelland registerprovideStandaloneProviders()in the standalone module providersExampleimport { StandaloneShellModule, provideStandaloneProviders } from '@onecx/angular-standalone-shell'; @NgModule({ imports: [StandaloneShellModule], providers: [ provideStandaloneProviders() ] }) export class AppModule {}