Bootstrap controls are not working in Angular | Stuck | jQuery version issue

Опубликовано: 05 Октябрь 2024
на канале: Mr. Techie Bar
597
9

Component interaction | @Input() ,@Output() decorator and Event Emitter() in Angular (Part - 8)
   • Component interaction | @Input() @Out...  


How we can fix the bootstrap Modal popup or drop-down not working in angular. Also put the jQuery reference above to bootstrap reference in angular.json file

Error Message :- "Cannot convert object to primitive value"

Steps :
1) Just Remove the earlier version of jQuery later install below command
2) Command :- npm install jquery@~3.4.1
3) Place the reference in angular.json file

For ease :
"node_modules/jquery/dist/jquery.min.js",
"node_modules/bootstrap/dist/js/bootstrap.min.js"