How to add Jquery in angular 5

preview_player
Показать описание
Commands :
npm install jquery --save
import * as $ from 'jquery';
Code:
ngOnInit()
{
$(document).ready(function(){
$('#btn1').click(function(){

alert('Button is clicked');
})

});

My Youtube gears:
Рекомендации по теме
Комментарии
Автор

Bhai youtube pe yogesh sharma channel dekhte hi dil khush ho jata hain.

ajayvishwakarma
Автор

Thanx for making this video.. If I have variable let say var amount =100; in jquery script. How can I use pass this amount varialble/value to angular service .ts method from angular component... ?

gopalbadeti
Автор

hello sir, angular-cli.json file kaha se aayi aur kaha hai is module project me...

syedakhil
Автор

have you created angular 4 Project Please share link

vishalrathore
Автор

really awesome explaning sir pls make video angular 2, 4, 5 login, register, forget password sir pls make....

RajeevKumar-jtvl