Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-back-to-top

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-back-to-top

Angular 2+ Back To Top Button Component

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by350%
Maintainers
1
Weekly downloads
 
Created
Source

ng-back-to-top

Angular 2+ Back To Top Button Component

Donate

( This Library Is Using Angular CLI's Library Generation Command )

How to:

Install npm

   npm install ng-back-to-top --save

Simple Example

Import Module
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import { NgBackToTopModule } from 'ng-back-to-top';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    NgBackToTopModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Use Component
<div>
  <ng-back-to-top></ng-back-to-top>
</div>

API

input property

color property is available to change the color of default button arrow

bgColor this property can change the background color of back to top button

Use Component With Custom Design / Content
<div>
  <ng-back-to-top>
    <div style="font-weight: bold; padding: 10px;">
      Go To Top
    </div>
  </ng-back-to-top>
</div>

Any contributions are appreciated.

paypal

Keywords

FAQs

Package last updated on 25 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc