15 May

Use jQuery in Angular/Typescript without a type definition

typescript

Together with Angular, Typescript is fast gaining popularity although it already exists since 2012.

Typescript is not your common JavaScript, but it gets compiled to JavaScript. Nevertheless it’s not always that simple to just copy some JavaScript code into your Typescript and make it work. To do this, you’ll sometimes need TypeScript type definitions which can be downloaded from various sources. Or you can simply use the InjectionToken from the Angular/Core package.
In this post, I’ll show you how to use it with jQuery.

Read More