-
Notifications
You must be signed in to change notification settings - Fork 678
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
How to switch loading bar condition based on views in angular js #333
Comments
Hi, From what I understand, angular config is setup once during module Regards, On Oct 26, 2016 12:39 PM, "Abhi" [email protected] wrote:
|
@nitinsaxena27 you are right. it doing config time.. How can I do? Thank you. |
Trick is you can use the same spinner template in your main html file and On Oct 28, 2016 3:51 PM, "Abhi" [email protected] wrote:
|
What version of angular-loading-bar are you using?
angular-loading-bar v0.9.0
What version of angular are you using?
I am using AngularJS v1.5.8
What is the issue ?
Right now i have added cfpLoadingBar in my app.config file.,
it is coming to all the page prior loading.
It is ok.
but I want the spinner loading bar to all the page except few other views.
I have 4 views used in application.
I want spinner loading to contactus & aboutus page.
means "
cfpLoadingBarProvider.includeSpinner = true;
"and for Home page and details page I want to set template to show the welcome message HTML.
means "
cfpLoadingBarProvider.spinnerTemplate = "<p>Welcome to my site</p>;"
"How can I handle single angular loading bar with different condition
can you help me on this.
is there any possibility?
What did you expect to happen?
If not, then show me different way how to add condition to full fill my query..
What actually happened?
Right now, spinner loader coming to all the page views same, I want to differentiate based on views.
The text was updated successfully, but these errors were encountered: