Skip to content

Commit

Permalink
Merge pull request #705 from geonetwork/fix-wc
Browse files Browse the repository at this point in the history
Web component: provide gn4 platform service
  • Loading branch information
fgravin authored Nov 28, 2023
2 parents e7e9323 + c1620fe commit f0a1614
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/webcomponents/src/app/webcomponents.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import { GnDatasetViewChartComponent } from './components/gn-dataset-view-chart/
import { FeatureDatavizModule } from '@geonetwork-ui/feature/dataviz'
import { FeatureAuthModule } from '@geonetwork-ui/feature/auth'
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
import { provideGn4 } from '@geonetwork-ui/api/repository/gn4'

const CUSTOM_ELEMENTS: [new (...args) => BaseComponent, string][] = [
[GnFacetsComponent, 'gn-facets'],
Expand Down Expand Up @@ -83,6 +84,7 @@ const CUSTOM_ELEMENTS: [new (...args) => BaseComponent, string][] = [
BrowserAnimationsModule,
],
providers: [
provideGn4(),
{
provide: Configuration,
useValue: apiConfiguration,
Expand Down

0 comments on commit f0a1614

Please sign in to comment.