Reputation: 211
for example
in this case support router-outlet(angular7) or any other options to solve the requirement ?
Upvotes: 1
Views: 162
Reputation: 1199
is your problem grid/component re-creation or data getting fetched again?
you can't and shouldn't keep the component in dom when you are going to a different view, however you can definitely avoid data reloading.
Consider using ngrx/store or a service to hold the data and not load it again when the grid is recreated.
Upvotes: 2