New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@placeholder vs @loading #54685
Comments
Hi, Placeholder:
Loading:
The difference seams quite clear here. The loading block replaces the placeholder onces trigger has fired/loading has started. |
Sorry - I must have missed that first paragraph. I agree that the sentence in the
|
IMO adding a simple sentence would help a lot:
|
I have created a PR for your change @ducin. I think it's a small enough change so that it's hopefully not complicated to merge it 👍 . Let's see what happens! |
Closing this issue, since PR #54779 was merged. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Describe the problem that you experienced
Reading the @defer documentation, the two sub blocks
@placeholder
and@loading
are mentioned.But there is no guidance on when to use which one and what the differences are. Both blocks seem to do the same thing and accept the same parameters. A loading spinner can also be a placeholder.
How should each one of these sub blocks be used? Is this just a semantic difference?
Enter the URL of the topic with the problem
https://angular.io/guide/defer#blocks
Describe what you were looking for in the documentation
No response
Describe the actions that led you to experience the problem
No response
Describe what you want to experience that would fix the problem
Expand on when to use
@loading
vs@placeholder
. There seems to be no difference in functionality.Add a screenshot if that helps illustrate the problem
No response
If this problem caused an exception or error, please paste it here
No response
If the problem is browser-specific, please specify the device, OS, browser, and version
No response
Provide any additional information here in as much as detail as you can
No response
The text was updated successfully, but these errors were encountered: