Reputation: 1002
I was trying to add a TWILIO Chat in my Angular2 application. I got a solution for importing TWILIO into our component from this link - How to use Twilio Client in Angular 2? .
While consoling the Twilio
variable, which i got from declare const Twilio: any;
, i am getting the entire twilio function. Can anyone please tell me how can i actually implement a chat application or how can i make use of that function, in my application.
Upvotes: 1
Views: 2579
Reputation: 73075
Twilio developer evangelist here.
Now that you have the Twilio
variable, you can access the chat functions through the Twilio.Chat.Client
object.
I recommend reading through the Twilio Programmable Chat documentation to see how it all works together and how you can build your own chat application. You can also check out the example application, which isn't built in Angular, but should give you an idea of how things should work together.
Upvotes: 2