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

angular-tippy

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-tippy

This is a wrapper around the Tippy.js. Easily create tooltips using a directive or utilize the service

  • 0.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
191
decreased by-33.91%
Maintainers
1
Weekly downloads
 
Created
Source

Angular Tippy.JS Directive & Service

This is a wrapper around the Tippy.js. Easily create tooltips using a directive or utilize the service

Installation

Install Using NPM

  npm install --save angular-tippy

Adding Module


import { AppComponent } from './app.component';
import { NgTippyModule } from 'ng-tippy';

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

Usage as a Service

import { NgTippyService, Instance} from 'ng-tippy';

  @Component({
    selector: 'app-test',
    template: `
      <div #element> </div>
    `
  })
  export class TestComponent implements OnInit {
    @ViewChild('element') element: ElementRef;
    private options = {
      content: 'This is a basic popup'
    }
    private tippyInstance: Instance;
    constructor(
      private tippy: NgTippyService;
    ) {

    }

    ngOnInit() {
      this.tippyInstance = this.tippy.init(this.element, this.options);
      this.tippyInstance.show(3000);
    }
  }

Usage as a directive

  const config = {
    content: 'This is a basic Popup'
  }
  <div *ngTippy="config"> 
    
  </div>

API

Check out the full documentation for the configuration at the official documents Tippy.js

License

Apache License Version 2.0, January 2004

Keywords

FAQs

Package last updated on 31 Mar 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