0
我正在研究在yeoman swiip-generator上使用angular-ui-bootstrap實現手風琴。使用 的例子從官方角度-UI-引導頁面顯示簡單的手風琴,但它不工作,在控制檯狀態下的錯誤angular-ui-bootstrap accordion not working on yeoman-generator
angular.js:13920 Error: [$compile:ctreq] Controller 'uibAccordion', required by directive 'uibAccordionGroup', can't be found!
任何人都有類似的問題,並知道解決的辦法?
在HTML中使用:
<div uib-accordion-group class="panel-default">
<uib-accordion-heading>
I can have markup, too!
</uib-accordion-heading>
This is just some content to illustrate fancy headings.
</div>
是的,在index.module頁面中我包含了模塊'ui.bootstrap'。 我使用swiip使用(v 1.3)然後嘗試更新它到當前(v 2.1.4)。兩者都返回相同的錯誤 –
這是我很愚蠢。由於我之前設置了自定義涼亭規則,因此在註冊模塊時出現錯誤,並且它影響了一些庫,包括角引導 –