Socket
Socket
Sign inDemoInstall

ngx-whatsapp-button

Package Overview
Dependencies
5
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ngx-whatsapp-button

Library to display a whastapp floating contact button on the user page


Version published
Weekly downloads
22
decreased by-21.43%
Maintainers
1
Install size
5.59 MB
Created
Weekly downloads
 

Readme

Source

#NGX-WHATSAPP-BUTTON

a floating whatsapp contact button to display in your app

just run in your terminal inside   your project :

    npm install ngx-whatsapp-button

after that import  the library  in your app module

   import { NgxWhastappButtonModule } from "ngx-whatsapp-button";

added to your imports section

...

 imports: [
      NgxWhastappButtonModule
  ],
 ...

once imported the library needs to pass two @Input parameters

  • ngx-whatsapp-phone:   the phone number where you want to receive the mesages
  • ngx-whatsapp-text:  the default  text you want to receive

###How to use it simply  add the tags in the component html where you want to display it

<jjva-ngx-whatsapp-button [ngx_whatsapp_phone]="phone" [ngx_whatsapp_text]="title"></jjva-ngx-whatsapp-button>

and inside your component ts declare  this two variables

  public phone = "THE PHONE NUMBER IN INTERNATIONAL FORMAT WITHOUT THE PLUS SIGN"
  public title = "THE PRESET MESSAGE TO SEND";
  

Keywords

FAQs

Last updated on 24 Sep 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