Since updating the bootstrap version in my application from 3.3.6 to 4, I've been encountering an error stating that $(...).modal is not a function. This was previously working fine before the update.
angular.js:14700 TypeError: $(...).modal is not a function
at ReviewQueueController.js?V=1.2:122
at angular.js:20440
at completeOutstandingRequest (angular.js:6362)
at angular.js:6642
I utilize modal in AngularJS for displaying success messages, errors, or any other information. I tried to replicate the issue on a Fiddle but couldn't succeed.
As I am relatively new to AngularJS, I'm unsure about how to resolve this issue.
After researching various posts, it was suggested to make changes to the CSS:
.fade.in {
opacity: 1;
}
.modal.in .modal-dialog {
-webkit-transform: translate(0, 0);
-o-transform: translate(0, 0);
transform: translate(0, 0);
}
.modal-backdrop.in {
filter: alpha(opacity=50);
opacity: .5;
}
Many sources also recommended using noconflict as mentioned here. However, I am uncertain about how to implement noconflict with AngularJS.
I would appreciate any suggestions on how to fix this issue.