I have an application that utilizes SignalR to communicate with a desktop application. To utilize SignalR I need to use jQuery in my .ts file. However, it doesn't seem to work post migrating from Angular 7 to Angular 8.
I use declare var $: any;
as I have in previous versions of Angular. Unfortunately, $ now prints blank to the console.
So, does Angular v8 no longer support using jQuery this way, or did something else break in the migration?
Update:
I have jQuery v3.3.1 loaded via npm.
This makes it global (in angular.json)
"scripts": [
"./node_modules/jquery/dist/jquery.min.js",
"./node_modules/signalr/jquery.signalR.js"
]
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…