You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

AngularJS控制器无法注入$uibModal?已试同类方案无效求助

求助:AngularJS 按钮触发模态框无效,已尝试同类方案未解决

我已经在社区里搜过同类问题,也试了大家分享的各种解决方案,但都没搞定,只能来这里提问了。

我的 HBS 模板代码

<link data-require="bootstrap-css@*" data-semver="3.3.6" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.css" />
<title>UI</title>
<div ng-controller="appCtrl">
  <button type="button" ng-click="openModal()">Abc</button>
</div>
<script type="text/ng-template...

注:代码后面的模态框模板内容没粘贴完整,核心需求是点击按钮调用openModal()方法打开模态框,但目前这个功能完全没反应,或者存在其他异常。

内容的提问来源于stack exchange,提问作者Xander

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 03:33:47