You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.
Unable to resolve signature of parameter decorator when called as an expression. This expression is not callable. Type 'Document' has no call signatures.
#398
Open
MunaMurad opened this issue
Aug 22, 2021
· 0 comments
I have an error when I import DOCUMENT in IONIC 6 -angular :
the code below :
import { DOCUMENT } from '@angular/common'; import { inject, Injectable} from '@angular/core'; import { Renderer2, RendererFactory2 } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class ThemeService { private renderer: Renderer2; constructor( rendererFactory:RendererFactory2 , @inject(DOCUMENT) DOCUMENT: Document) { this.renderer = rendererFactory.createRenderer(null,null);
the error message :
Unable to resolve signature of parameter decorator when called as an expression.
This expression is not callable.
Type 'Document' has no call signatures.ts(1239)
I have an error when I import DOCUMENT in IONIC 6 -angular :
the code below :
import { DOCUMENT } from '@angular/common'; import { inject, Injectable} from '@angular/core'; import { Renderer2, RendererFactory2 } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class ThemeService { private renderer: Renderer2; constructor( rendererFactory:RendererFactory2 , @inject(DOCUMENT) DOCUMENT: Document) { this.renderer = rendererFactory.createRenderer(null,null);
the error message :
Unable to resolve signature of parameter decorator when called as an expression.
This expression is not callable.
Type 'Document' has no call signatures.ts(1239)
(alias) const DOCUMENT: InjectionToken
import DOCUMENT
The text was updated successfully, but these errors were encountered: