From 84cbb05070a4ce4c136c4ccb5b327cc7f1feea7a Mon Sep 17 00:00:00 2001
From: Muhammad Ahsan Ayaz
-
+[](https://opensource.org/licenses/MIT)
-
+
A simple, easily to use package to use [servicebot.io](https://www.servicebot.io/) with Angular apps.
diff --git a/docs/components/AngularServiceBotComponent.html b/docs/components/AngularServiceBotComponent.html
index c57280b..2c930b8 100644
--- a/docs/components/AngularServiceBotComponent.html
+++ b/docs/components/AngularServiceBotComponent.html
@@ -65,7 +65,7 @@
File
Implements
- OnInit
+ AfterViewInit
<p>
- angular-service-bot works!
-</p>
+ <div>
+ <div id="servicebot-subscription-portal"></div>
+</div>
constructor()
+constructor(bot: AngularServiceBotService)
Name | +Type | +Optional | +
bot | + +
+ AngularServiceBotService
+ |
+
+ + No + | + +
+ + serviceBotParams + | +|
+ Type : ServiceBotParams
+ |
+ |
+ + | +
ngOnInit()
+
+ ngAfterViewInit()
import { Component, OnInit } from '@angular/core';
+ import { AfterViewInit, Component, Input } from '@angular/core';
+import { AngularServiceBotService } from './angular-service-bot.service';
+import { ServiceBotParams } from './interface/service-bot-params';
@Component({
selector: 'lib-angular-service-bot',
template: `
- <p>
- angular-service-bot works!
- </p>
+ <div>
+ <div id="servicebot-subscription-portal"></div>
+ </div>
`,
- styles: [
- ],
})
-export class AngularServiceBotComponent implements OnInit {
+export class AngularServiceBotComponent implements AfterViewInit {
+
+ @Input() public serviceBotParams: ServiceBotParams;
- constructor() { }
+ constructor(
+ private bot: AngularServiceBotService,
+ ) { }
- ngOnInit(): void {
+ public ngAfterViewInit() {
+ this.bot.initServiceBot(this.serviceBotParams);
}
}
@@ -262,7 +337,7 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+