angularjs - 指令 'accordion' 要求的 Controller 'accordionGroup' 在 ui-bootstrap 中找不到错误

标签 angularjs angular-ui-bootstrap

我正在为 Accordion 使用 ui-bootstrap,我在 app.js 中包含了 ui.bootstrap。我收到这个错误 - 找不到指令“accordionGroup”所需的 Controller “accordion”!

这是我使用的代码-

    <accordian close-others="oneAtATime">
        <accordion-group is-open="false" heading="Requests">
        <div ng-repeat="">
        < accordion-group heading="">
            <table class="table table-striped table-bordered">
              <thead>
                <tr>
                  <th>H</th>
                  <th>C</th>
                </tr>
              </thead>
             <tbody>
                <tr ng-repeat="" ng-init="inner=$index">
                   <td>{{}}</td>
                   <td>{{}}</td>
               </tr>
             </tbody>
          </table>
      </accordion-group>
    </div>
  </accordion-group>
 </accordian>

最佳答案

<accordian close-others="oneAtATime">
        ^
You got a typo here

关于angularjs - 指令 'accordion' 要求的 Controller 'accordionGroup' 在 ui-bootstrap 中找不到错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31107886/

相关文章:

javascript - AngularJS - 如何缓存服务的 ajax 结果以在 Controller 中重用

angular - 验证错误 : Progress Plugin Invalid Options

html - 如何模糊背景图像 - css?

javascript - Restangular:错误:未知提供者:RestangularProvider <- Restangular

AngularJs 指令加载事件

javascript - Angular UI-Router 组件无法正常工作

javascript - 通过 ng-controller 动态绑定(bind) Controller

javascript - 在 angular bootstrap ui typeahead 指令上触发按键事件

javascript - 使用 Angular UI Bootstrap 禁用静态选项卡?

angularJS + UI bootstrap typeahead : filter:$viewValue doesn't work