Good day,
Within the app.module.ts:
{path: 'homepage', component: HomepageComponent},
In the xxx.component.ts, we have the following code:
private function() {
const variable = this.createObject(param);
console.log(variable);
this.Router.navigate(['homepage']);
}
Upon examination of the console.log(), we observe that it is an Object structured as follows:
Object: {
info1: Object {...},
info2: Array [...],
info3: Object{...},
info4: Array[...]
}
Please help me understand how to pass the "variable" into the new component named "Homepage".