0.0.6 • Published 2 years ago

@mahdivajdi/widget-angular v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Raychat widget installer for Angular

raychat

The new online chat experience begins here!

Get closer to your leads and customers with a website chat widget. Adding a chat widget to your website will make your customer service experience even more exceptional.

Install

npm i @raychat/widget-angular

Use

1. Import in the AppComponent Wrote to app.component.ts:

import { Component } from "@angular/core";
import { CommonModule } from "@angular/common";
import { RouterOutlet } from "@angular/router";
import { RaychatWidgetComponent } from "raychat-widget";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [CommonModule, RouterOutlet, RaychatWidgetComponent],
  templateUrl: "./app.component.html",
  styleUrl: "./app.component.css",
})
export class AppComponent {
  title = "test-angular1";
}

2. Use in the app.component.html

Get token and type from raychat.io

<style>
  <!-- style related -->
</style>

<main>
  <!-- other elements -->
  <lib-raychat-widget token="6d5b4ba5-xxxx-xxxx-xxxx-48498f3fc2a2" type="normal" />
</main>

Props

propsrequireddefaultValuedescription
tokentrueundefinedGet token from raychat.io
typefalsenormalThe type of script: normal, fast-laod, seo-friendly

License

MIT

Author

Mahdi Vajdi Github: @mahdi-vajdi Email: mahdivajdii@gmail.com

0.0.5

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago