Issue
I have already added the script to index.html but can't access it inside code of any component of my angular Project. It is however accessible from the index.html.
The Script: <script src="https://extension-files.twitch.tv/helper/v1/twitch-ext.min.js"></script>
I want this to be accessible in all of my routes of my Angular project.
Solution
The script is available globally, just needed the right way to access the Methods.
Add
declare let Twitch: any;
at the top of with the imports in the ts file and then the methods can be accessed with
Twitch.ext
Answered By - Tejendra Pratap
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.