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

Is there any built in "Loading spin" for data loading? #44

Closed
Smilefounder opened this issue Oct 22, 2017 · 9 comments
Closed

Is there any built in "Loading spin" for data loading? #44

Smilefounder opened this issue Oct 22, 2017 · 9 comments

Comments

@Smilefounder
Copy link

I can not found any "loading spin" component for data loading.
Do we have any that we can use for now?

Thanks.

@Smilefounder
Copy link
Author

Sorry, I just found https://akveo.github.io/nebular/#/docs/services/spinnerservice but not sure how to use it yet...

@blankstar85
Copy link
Contributor

There was also a PR adding Pace.js for a loading bar. akveo/ngx-admin#1319

@jarredszabadi
Copy link

I've also used the ng-progressbar package which works fine. you'll have to remove the spinner from index.html if you're using ngx-admin though

@blankstar85
Copy link
Contributor

Not sure you would want to do that as you would loose the beginning loading screen. I'm using both. The spinner for the first load and the progress bar for in app loading

@jarredszabadi
Copy link

jarredszabadi commented Nov 1, 2017

do you have solution for hooking up pace to your http requests? i was having issues with that approach, that's why i brought in ng-progress

edit: pace was working well for navigating to a new page. when i tried hooking up to http requests the whole page would reload and I couldn't trigger pace when the request started.

@blankstar85
Copy link
Contributor

@jarredszabadi I haven't gotten to worrying about that just yet, I'm still building out my forms and pages, as well as working on getting the authentication working right, I see nixxa added a pr to merge his updated auth docs, so i'm looking at that now. I found this for pace and stored it in my list of items to get to. I haven't tested, and i'm not sure where to put this just yet, but maybe it will help you get started. https://stackoverflow.com/questions/42236286/pace-track-http-requests-in-angularjs

@jarredszabadi
Copy link

Thanks @blankstar85

In the meantime I added ng-progress and got it working with the spinner. ng-progress is solid in that there's no configuration needed to have it show when you perform a web request. Much like you when the other stuff on my to do list is done I'll come back to getting pace working.

@blankstar85
Copy link
Contributor

blankstar85 commented Nov 2, 2017

@jarredszabadi np, i'll post what i find here if I get to it before you. looking around real quick it appears it needs to be above the html script import. so maybe in the index file at the start of the head section, since angular cli takes care of adding all the import statements later.

Edit: got sidetracked with this lol, On another look https://github.com/HubSpot/pace its no longer maintained.

@nnixaa
Copy link
Collaborator

nnixaa commented Apr 10, 2018

Closing as it's added to component plans #336

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants