why*_*to8 0 javascript angularjs angular-ui-bootstrap bootstrap-modal
如链接http://angular-ui.github.io/bootstrap (从顶部的Directive下拉列表中选择模态)中所示,有一个名为windowTemplateUrl的参数,用于覆盖模态内容.因此,如果我们使用它,在templateUrl或模板中给出什么,因为调用modal的open函数需要其中一个.例如,代码如下.
$scope.open = function(){
var modalInstance = $modal.open({
windowTemplateUrl : '/client/content.html'
})
}
Run Code Online (Sandbox Code Playgroud)
如果我运行上面的代码,则会出现需要templateUrl或模板的错误.那么,我如何使用windowTemplateUrl.
windowTemplateUrl是一个窗口装饰模板:https://github.com/angular-ui/bootstrap/blob/master/template/modal/window.html
您仍然需要提供您希望看到装饰的模态内容(使用template或templateUrl).
| 归档时间: |
|
| 查看次数: |
17113 次 |
| 最近记录: |