I am working on an angular2 project and I have 2 components namely: home and first.
My home.component.html is as below :-
Add jquery cdn to the head of your index.html. Something like this:
Don't forget to declare var $ at the top of your .ts file before @Component decorator .i.e.
declare var $;