Bootstraps the GlobalHeaderClient by loading it from the specified entry URL.
import { bootstrap } from '@govflanders/vl-widget-global-header-types';const url = 'https://widgets.vlaanderen.be/api/v2/widget/your-widget-id/entry';const client = await bootstrap(url);// Use the GlobalHeaderClient instanceconst config = await client.getConfig(); Copy
import { bootstrap } from '@govflanders/vl-widget-global-header-types';const url = 'https://widgets.vlaanderen.be/api/v2/widget/your-widget-id/entry';const client = await bootstrap(url);// Use the GlobalHeaderClient instanceconst config = await client.getConfig();
The entry URL which has a form like this: https://widgets.vlaanderen.be/api/v2/widget/your-widget-id/entry
https://widgets.vlaanderen.be/api/v2/widget/your-widget-id/entry
The GlobalHeaderClient object.
Bootstraps the GlobalHeaderClient by loading it from the specified entry URL.
Example