I have 2 different component, which is of different modules too. now i am saving data in one component, that saved data must be fetched to the other component. How can i fetch data from component to component, Please help.
First component:
saveSidebar() {
let params = { userGuID: this.uID, MenuIds: this.selectedMenuIds.toString() }
console.log(params);
this._Service.addUserMenu(params).subscribe((res) => {
if (res.Header.Success) {
}
})
}
Here the saved data must go to menu component
which is in different component