Hello @kartik,
Refer the scripts inside the angular-cli.json (angular.json when using angular 6+) file.
"scripts": [
"../path"
];
then add in typings.d.ts (create this file in src if it does not already exist)
declare var variableName:any;
Import it in your file as
import * as variable from 'variableName';
Hope it helps!!
If you need to know more about Java, join our Java certification course online.
ThanK you!!