Usually we use data-target=\"#myModal\" in the to open a modal. Right now I need use codes to control when to open the modal.
data-target=\"#myModal\"
I am using a variable to control show and hide and rely on the button the open the modal
ts code:
showModel(){ this.showModal = true; }
html:
Open Modal Some text in the modal. 0 讨论(0) 查看其它14个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Some text in the modal.