Socket
Socket
Sign inDemoInstall

angular-tippy

Package Overview
Dependencies
7
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
268
increased by17.54%
Maintainers
1
Install size
2.83 MB
Created
Weekly downloads
 

Readme

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

Last updated on 31 Mar 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc