Skip to content
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

Loading Spinner/Egg Animation #35

Open
caelinsutch opened this issue Feb 22, 2019 · 1 comment
Open

Loading Spinner/Egg Animation #35

caelinsutch opened this issue Feb 22, 2019 · 1 comment
Labels
enhancement Addition to existing or planned features
Projects
Milestone

Comments

@caelinsutch
Copy link
Owner

Add loading icon for page loading, not sure how to do this at all

@caelinsutch caelinsutch added the enhancement Addition to existing or planned features label Feb 22, 2019
@caelinsutch caelinsutch added this to the Phase 1 milestone Feb 22, 2019
@caelinsutch caelinsutch added this to To do in Phase 1 via automation Feb 22, 2019
@JaimeStill
Copy link

Not sure what you're looking for specifically, but you could create a component using a custom logo that spins using CSS.

Anytime you have a long running task from a service, you could do this in the component template:

<ng-container *ngIf="service.data$ | async as data else loading">
    <!-- component view markup -->
</ng-container>
<ng-loading #loading>
    <!-- your spinner component here -->
</ng-loading>

Example:
loading-demo

In this case, I'm using a mat-progress-bar, but it's just as easy to use a custom component as well.

The route component in the demo app I created in the GIF is: component, template, service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Addition to existing or planned features
Projects
Phase 1
  
To do
Development

No branches or pull requests

2 participants