I have a code,that shows a modal with this code using jquery:
$('#myModal').modal({'show':true});
but with angular.js not works. what is the equivalent of $('#myModal')
using angular.js?
// not works for me
angular.element("#myModal")
You can use document.querySelector
to get the dom element and then use angular.element
var elem = angular.element(document.querySelector('#myModal'));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With