ng2-scroll-to-el
Demo
https://MarcinMichalik.github.io/ng-scrollTo/
Table of contents
About
Simple scrollTo directive for Angular 2+. You can use it to scroll to element on your website.
Installation
Install through npm:
npm install --save ng2-scroll-to-el
Then include in your apps module:
;;
Usage
scrollDuration and scrollOffset is optional parameters.
Directive
Place 1Place 2
You may also find it useful to view the demo source.
Service
Top
You may also find it useful to view the demo source.
;
You may also find it useful to view the demo source.
Documentation
All documentation is auto-generated from the source via compodoc and can be viewed here: https://MarcinMichalik.github.io/ng-scrollTo/docs/
Development
Prepare your environment
- Install Node.js and NPM
- Install local dev dependencies:
npm install
while current directory is this repo
Development server
Run npm start
to start a development server on port 8000 with auto reload + tests.
Testing
Run npm test
to run tests once or npm run test:watch
to continually run tests.
Release
- Bump the version in package.json (once the module hits 1.0 this will become automatic)
npm run release
License
MIT