I want to call a function of an web component that I'm using in an Angular 10 Project.
Lets say I have an Angular Component called Foo:
foo.component.ts:
export class FooComponent implements OnInit, OnDestroy {
@ViewChild('bar') bar: any;
constructor() { }
ngOnInit(): void {
// this.bar.hello('world')
}
}
foo.component.html:
<h1>FOO</h1>
<wc-bar></wc-bar>
The webComponent bar was build with VueJS and has a function called hello, how can I call that function?