Then I added a button to present the modal:
When I click in the button the modal is added, however it is not being displayed.
My guess is that there is something wrong with the method present in modalElement.present() that is not displaying the modal.
I added the following jquery code
$('ion-modal').css('display', 'flex'); and now the modal is displayed.