The @daffodil/navigation Magento driver connects your storefront's menus to your Magento store.
import { ApplicationConfig } from '@angular/core';
import { provideMagentoDriver } from '@daffodil/driver/magento';
import { provideDaffNavigationMagentoDriver } from '@daffodil/navigation/driver/magento';
export const appConfig: ApplicationConfig = {
providers: [
provideMagentoDriver('https://some-magento-store.com/graphql'),
provideDaffNavigationMagentoDriver(),
],
};
By default, the driver calls Magento's GraphQL API to retrieve the store's root category. You can skip this call by providing a rootCategoryId:
provideDaffNavigationMagentoDriver({ rootCategoryId: 'Mg==' })