From db1474addc557b4fc78f598beeb9455b9d6d36b5 Mon Sep 17 00:00:00 2001 From: Enea Jahollari Date: Wed, 13 Sep 2023 12:38:41 +0200 Subject: [PATCH] feat: make SvgOptionsToken provided in root with default value --- .../ngx-fast-lib/src/lib/token/svg-options.token.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/ngx-fast-lib/src/lib/token/svg-options.token.ts b/packages/ngx-fast-lib/src/lib/token/svg-options.token.ts index d4695b8..48f587c 100644 --- a/packages/ngx-fast-lib/src/lib/token/svg-options.token.ts +++ b/packages/ngx-fast-lib/src/lib/token/svg-options.token.ts @@ -2,5 +2,13 @@ import { InjectionToken } from '@angular/core'; import { SvgOptions } from './svg-options.model'; export const SvgOptionsToken = new InjectionToken( - '__SvgOptionsToken__' + '__SvgOptionsToken__', + { + providedIn: 'root', + factory: () => ({ + url: () => '', + defaultSize: undefined, + suspenseSvgString: undefined, + }), + } );