-
Notifications
You must be signed in to change notification settings - Fork 357
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
TdLoading Pipe or Directive when using an Angular async pipe #528
Comments
I am thinking it might have to work something like this:
So you can leverage the output of the observable, and the Still brainstorming about this. |
Playing around with this, and i think it will be something like described before:
OR
Since when using the async pipe, what we get as input is We can translate this as Diving in more 🤓 |
Or possibly like this to separate concerns:
|
I think that this approach would leave the least amount of questions about what is going on. The syntax is readable and leaves no room for interpretation. This approach also implies the developer use one loading service per item placed on the page without having to declare a named element to be resolved when the observable is returned.
Or
Where as this approach All the while I think that both approaches would provide great utility when binding to an observable data source. |
PR created with the final design of this 😄 Quite happy with the way it works now #583 |
Feature Request
TdLoading Pipe or Directive
When using an asynchronous pipe in conjunction with an *ngFor it would be nice for the TdLoading service to track the start and end of an XHR request to the remote server.
What is the expected behavior?
If I use the following snippet of code the TdLoading pipe or service should be able to start an infinite progress indicator.
When the remote call is complete and the object list is available to be iterated over the progress indicator should disappear.
The text was updated successfully, but these errors were encountered: