ngx-whastapp-button
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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";
  

Package Sidebar

Install

npm i ngx-whastapp-button

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

52.9 kB

Total Files

26

Last publish

Collaborators

  • jordicuevas