Show pending component (loading spinner) alongside main component #2621
Unanswered
BrendanC23
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a straightforward way to show both a pending component and a regular component, or alternatively to determine whether a navigation is pending within a component? I want to show a loading spinner on top of a page, not in place of the page. Is there a way to do this with
pendingComponent
? Alternatively, is there anisLoading
value that can be used within the component?Here's a StackBlitz example.
I want to show the spinner but also continue to show the main component.
My actual use-case here is to display an empty form on the initial page load and then load the form data if the user clicks the button. I want to show a spinner while the data loads, but continue to show the form as well.
Beta Was this translation helpful? Give feedback.
All reactions