This project is build using Angular 5.x.
npm install ngx-scrollupThis project is build using Angular 5.x.
Use npm install ngx-scrollup to install it to your project.
In your app.module.ts
Add , import {ScrollupModule} from 'ngx-scrollup' to add the reference to your project.
Update your import array like this
```
@NgModule({
declarations: [
...
],
imports: [
...
ScrollupModule
...
],
providers: [],
bootstrap: [AppComponent]
})
You can give scrollDuration by yourself or default is of 200ms.
Example :
Feel free to contribute to the project at github Here