Angular 2 Using third party libraries like jQuery in Angular 2 Using jQuery in Angular 2.x components


To use jquery in your Angular 2.x components, declare a global variable on the top

If using $ for jQuery

declare var $: any;

If using jQuery for jQuery

declare var jQuery: any

This will allow using $ or jQuery into your Angular 2.x component.