ngx-scroll-page v0.0.4
Scroll page to top button.
Alert component for angular projects
Creative scroll page button with mutiple color variance
Preview demo
This preview was generated with Stackblitz
Angular version
This library was generated with Angular CLI version 9.1.9.
Code integration
To use this package as a service npm i ngx-scroll-page
install this on the root angular project .
Note: Don't forget to run this commend
npm i ngx-scroll-page
on root folder or else it will throw error.
Import
Import the module on your app.module.ts
file as follow.
import { NgxScrollPageModule } from "ngx-scroll-page";
Then import the module as follow on imports array
NgxScrollPageModule
Using
After importing this library with npm install ngx-scroll-page
, go to the component which is declared under app.module.ts
and integrate as below. use it on any component or else declare it on app.component.ts
for enabling it global to application.
Scoll page module
<ngx-scoll-page [background]="background" ></scoll-page>
background : (required) value shoule be
color
use any kind color value (hex | rgb | rgba | hsl)as string
...
Further help
To get more help on the usage check out the Ngx rating star README.