Skip to content

Can't position the loading bar somewhere else as top... #314

Closed
@sebastienvermeille

Description

@sebastienvermeille

Hello first of all thank you for this great angular feature ! 👍

But... it stays on the top of the page on me.. I can't make it go done under my header component. Have an idea about the possible cause of that ? Thank you in advance.

What version of angular-loading-bar are you using?
^0.9.0 (bower)

What version of AngularJS are you using?
1.5.8

What browsers are affected?
Chrome

Please provide either a JSFiddle, Plunkr example that replicates the issue
It is private code. but I did it that way :
`some html code ....

<-- here `

and in a app.module.ts file :
`
.config(['cfpLoadingBarProvider', function(cfpLoadingBarProvider){

     // see : https://github.com/chieffancypants/angular-loading-bar
     cfpLoadingBarProvider.includeSpinner = false;
     cfpLoadingBarProvider.includeBar = true;
     cfpLoadingBarProvider.parentSelector = '#loading-bar-container';
     cfpLoadingBarProvider.latencyThreshold = 100;
  }]);

`

Please describe the issue
I want to use angular-loading-bar because of this feature : we can place it where we want it.
https://github.com/chieffancypants/angular-loading-bar#position-the-template

What did you expect to happen?
The loadingbar should be displayed where my div #loading-bar-container is placed.
What actually happened?
The loadingbar stays on top of the page.

Do you have any idea about the cause of this problem ? Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions