Open kylegracey opened 10 years ago
Here's the angular way: https://docs.angularjs.org/api/ng/service/$anchorScroll Looks pretty simple. I'll see if I can fit my scroll-to script into that soon.
There are a few directives already created: https://github.com/arnaudbreton/angular-smoothscroll https://github.com/durated/angular-scroll - this one seems nicer
Super easy to install once we get bower - but we can manually download the JS and put it into our app for now like we've done with the other libs so far.
Otherwise we can get an idea of how they did theirs by looking at the code and create our own directive for the scroll stuff (shouldn't be that hard).
Neel Bhat
On Tue, Sep 23, 2014 at 12:36 PM, Kyle Gracey notifications@github.com wrote:
Here's the angular way: https://docs.angularjs.org/api/ng/service/$anchorScroll Looks pretty simple. I'll see if I can fit my scroll-to script into that soon.
— Reply to this email directly or view it on GitHub https://github.com/neelbhat88/imuadev/issues/447#issuecomment-56558768.
So obviously since our setup uses # paths, I can't use an to scroll to a certain point on a page. I'm sure theres a simple angular way to do it that I'm just not aware of.
It's not urgent. We're fine without it for now. But there are definitely some cases where it would be nice to have.
The second piece of it will be writing a buttery smooth scrollto js for whatever solution we find.