I am trying to pass inputs/outputs to the lazy loaded component, but I'm not sure how I can do that.
If it's not lazy loaded, I know that I can do that like this.
test.ts
testdata: string;
ngOnInit(){
this.testdata = "TEST";
}
test.html
<test-component [data]="testdata"></test-component>
testcomponent.ts
@Input() data: string;
But what if testcomponent is lazy loaded and I have something like this?
testcomponent is loaded, when user goes on specific path.
test.html
<router-outlet></router-outlet>