I am facing a situation where I have 2 classes within the same component.ts
file. One class is responsible for embedding the Doc blot
, while the other class serves as the main component class
. I need to call a function that resides in the component class
from the Doc blot class
. Despite attempting a solution mentioned in this post, I encountered an issue where it threw an error stating
Expected 12 arguments, but got 0.
. Any guidance or assistance on this matter would be greatly appreciated.
xyz.component.ts
class DOCBlock extends Embed {
foo() {
let component = new SomeComponent()
component.bar()
}
export class SomeComponent implements Oninit {
contructor(12 arguments......) { }
bar() { // magic happens here }
}