SyntaxFix
Write A Post
Hire A Developer
Questions
Try this, to call your code in ngOnInit()
someMethod() // emitted method call from output { // Your code } ngOnInit(){ someMethod(); // call here your error will be gone }