UNPKG

@dotcms/angular

Version:

Official Angular Components library to render a dotCMS page.

21 lines 728 B
import { Provider } from '@angular/core'; /** * Provides a DotCMS image loader configuration for the Angular Image directive * * @param path - The base URL path to the DotCMS instance, or empty to use current site * @returns An array of providers for the IMAGE_LOADER token * @throws Error if the provided path is invalid * @example * ```typescript * // In your app.config.ts * export const appConfig: ApplicationConfig = { * providers: [ * provideDotCMSImageLoader('https://demo.dotcms.com') * // Or use current site: * // provideDotCMSImageLoader() * ] * }; * ``` */ export declare function provideDotCMSImageLoader(path?: string): Provider[]; //# sourceMappingURL=dotcms-image_loader.d.ts.map