I have two different components
first.component.ts
ngOnInit(): void {
}
setStatusOfUser(){
this.Service.setStatus(Id,userId).subscribe((data)=>{
this.msg=data;
})
}
second.component.ts
ngOnInit():void {
this.getProgress()
}
getProgress(){
this.service1.getProgress().subscribe(data=>{
this.progresss=data;
});
}
when I am refrshing the page its working but when clicking on the setStatusofUser I want to render the get progress method in another component how to do that.