Giter Club home page Giter Club logo

Comments (8)

felipesanches avatar felipesanches commented on May 28, 2024

I need that as well, for the Metapolator web typography application: metapolator/metapolator#496

from ngprogress.

davelab6 avatar davelab6 commented on May 28, 2024

At the moment its hard coded to the page body, at https://github.com/VictorBjelkholm/ngProgress/blob/master/src/provider.js#L20

I hope making the target element configurable should be simple..?

from ngprogress.

felipesanches avatar felipesanches commented on May 28, 2024

Yes, I guess we could pass a DOM node to the constructor.

from ngprogress.

felipesanches avatar felipesanches commented on May 28, 2024

It seems that this commit already provides us a way to do it:

c9639c6

by placing the tag in our angular template. I'll try that.

from ngprogress.

felipesanches avatar felipesanches commented on May 28, 2024

hmmm... actually I was wrong about the way it enables it. It actually enables it by providing a new API method: setParent(DOMnode) :-)

from ngprogress.

davelab6 avatar davelab6 commented on May 28, 2024

Sounds good

from ngprogress.

felipesanches avatar felipesanches commented on May 28, 2024

I was able to find a solution that works, but I am not happy about the code style. I feel like this is a shortcoming of the ngProgress API implementation, so I leave this note here so that the developers can look at our code as a reference to what people have been trying to do with the library and ended up in hacky solutions like mine at felipesanches/metapolator@b61e481

from ngprogress.

victorb avatar victorb commented on May 28, 2024

Since version 1.0.7 you are able to set the position to whatever element you feel like. Take a look at the demo in index.html about how to do just that.

from ngprogress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.