In xyx.component.ts
file I have 2 classes one is blot class
which extends another class(Embed
) which is provided by QuillJS(we shouldn't touch this). so inside the blot class
i have to call a service but I am getting error Call target does not contain any signatures
. this error is about super()
( i have added super() as my editor suggested to remove an error after creating constructor ) in the constructor even if I remove it I will get an error. I have searched on the internet for solutions. the internet has solutions for normal classes but not for Extends
class. my goal is to call a service without any errors. so yes..any help is very much appreciated.
xyz.component.ts
class Blot extends Embed {
some variables
..
..
constructor(private myService:SomeService) { super() }
foo () {
this.myService.someFun().subscribe(data => console.log(data) )
}
}
export class XYZComponent implements Oninit {
...........
some code
...........
}