Comments (8)
I need that as well, for the Metapolator web typography application: metapolator/metapolator#496
from ngprogress.
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.
Yes, I guess we could pass a DOM node to the constructor.
from ngprogress.
It seems that this commit already provides us a way to do it:
by placing the tag in our angular template. I'll try that.
from ngprogress.
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.
Sounds good
from ngprogress.
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.
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)
- website HOT 4
- Update link reference HOT 1
- Fix naming in bower.json HOT 1
- Broken API? HOT 1
- Typescript definition file HOT 1
- Versions missing from npm HOT 9
- 'main' referenced in package.json doesn't exist. HOT 4
- setParent() not work HOT 4
- Bower Install Warning HOT 2
- ngProgress injected is not the service but the factory HOT 6
- ngProgressFactory function misses it's dependencies HOT 3
- ngProgressFactory injection failed HOT 1
- Documentation issue HOT 1
- progressbar.complete() shouldn't animate unless it has been started
- first param in $timeout&progress speed HOT 1
- TypeError: 'undefined' is not an object (evaluating 'this.parent.appendChild')
- after deploy code in enviroment - ngprogress version not found HOT 1
- NPM Version Request HOT 4
- IE not reflecting DOM updates and progress bar is delayed until the page is nearly done loading HOT 1
- Request for new maintainer HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngprogress.