模态中的模态或模态角度 js 1 和 HTML 中的 div "hide and show"



我已经希望我的模态能使我添加有关" thing 1"的信息,但是在同一模态中,我必须添加与该" Thing 1"相关的特定信息!当我添加更具体的信息时,这些信息必须出现在模式中。html我可以做到这一点!否则,我试图将"显示"one_answers"隐藏"的零件放在我的需求中,无论是否单击。这样:https://www.w3schools.com/angular/tryit.asp?filename = try_ng_events_hide但这不是模态的!谁能帮我 ?

您可以尝试使用angular material https://material.angularjs.org/latest/demo/dialog

使用此道具

 preserveScope: true,
 autoWrap: true,
 skipHide: true, 

这是示例,或者可以尝试创建自己的服务

我的答案之一与创建对话框相似

最新更新