Reputation: 144
I was trying to integrate a third party chat plugin to my angular 5 project but having a very hard time doing it. I could not get what their documentation wants to say or how to carry on it. If anyone has integrated it before then please help me! Here is the npm Appklozic link here if you want to see the documentation.
Upvotes: 1
Views: 452
Reputation: 42
Hence there are no @types for Applozic chat, there are two ways to integrate with angular 2+.
npm install applozic
.applozic.js
in angular.cli.json
file. Now you can import applozic in app component and call the init function reference to it.
import * as AppLozic from 'applozic';
AppLozic.init({{appId: 'PUT_APPLICATION_KEY_HERE', userId: 'PUT_USERID_HERE', userName: 'PUT_USER_DISPLAYNAME_HERE'});
Upvotes: 1