角UI引导模式 - 使用自定义模式窗口 [英] Angular UI Bootstrap modal - use custom modal window

查看:165
本文介绍了角UI引导模式 - 使用自定义模式窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如在链路定 http://angular-ui.github.io/bootstrap (选择指令模式下拉顶部),有一个叫windowTemplateUrl参数,用于通过骑模式的内容。因此,在情况下,我们使用这个,是什么在templateUrl或模板给,因为这些需要一个调用模式的开放功能。对于如在code如下。

As given in the link http://angular-ui.github.io/bootstrap ( select modal from Directive drop down on top), there is a parameter called windowTemplateUrl which is used to over ride the modal content. So, in case we are using this, what to give in templateUrl or template, as one of these is required for calling the open function of modal. For e.g. the code is given below.

$scope.open = function(){
  var modalInstance = $modal.open({
      windowTemplateUrl : '/client/content.html'
  })
}

如果我运行code如上,它给人错误templateUrl或模板是必需的。所以,我怎么使用windowTemplateUrl。

If I run the code as above, it gives error that templateUrl or template is required. So, how do I use windowTemplateUrl.

推荐答案

windowTemplateUrl 是窗口模板的装修的<一个href=\"https://github.com/angular-ui/bootstrap/blob/master/template/modal/window.html\">https://github.com/angular-ui/bootstrap/blob/master/template/modal/window.html

您还需要提供模态的的内容的(使用模板 templateUrl )的你想看到的装饰。

You still need to supply modal's content (using template or templateUrl) that you would like to see decorated.

这篇关于角UI引导模式 - 使用自定义模式窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆