on-internet
← Community

How to keep same date when refreshing the page?

Stack Overflow ·

I'm getting data on button click from WebAPI and navigate the component to other component to show this data and this trick is working fine for me but the issue is when I refresh the page my data is empty, Please provide me some solution or example to keep same data. Thanks in advance component.ts //where I'm getting data onClick onSubmit(){ this.departmentService.GetDepartmentSearchResults(this.modelSearch1.value.Department, this.modelSearch1.value.Year, this.modelSearch1.value.No).subscribe(res => { this.objDepartmentsSearchedResults = res as DepartmentsSearchedResultsModel[]; this.departmen

Comments

Sign in or sign up to comment and upvote.

No comments yet.