【发布时间】:2015-08-26 07:48:29
【问题描述】:
我正在使用 html5、angularjs、bootstrap。因此,它们中的每一个都提供了许多选项来创建模态窗口。我的整个网站有两件事,一是确认对话框或表单对话框。所以这是最好的可重用方法。我应该使用 html5 还是创建指令?
【问题讨论】:
-
angular ui-bootstrap怎么样? angular-ui.github.io/bootstrap/#/modal -
使用最适合您需求的。在查看 bootstrap.js 之前,先看一下角度模块/指令资源。您可以使用许多现成的模块
-
你应该使用angular-ui.github.io/bootstrap/#/modal。如果你想创建确认模态框,那么你应该创建一个工厂并覆盖模态框。