Hi ramitaherwahd...,
If you want to include JavaScript files from a CDN, you need to include these files in your index.html head section.
Index.html
<script src="https://cdn.popupsmart.com/bundle.js" data-id="847129" async defer></script>
Then, you need to declare it in TS file as a global variable to use.
declare let bundle: any; //declare bundle.
//Use bundle using bundle().
Reference: https://stackoverflow.com/questions/51484076/angular-include-cdn-in-component-usage