Today I upgraded angular-ui-bootstrap package from 1.3 to 2.0 and the it throws me the error below.
Error: [$compile:ctreq] Controller 'uibAccordionGroup', required by directive 'uibAccordionHeading', can't be found! http://errors.angularjs.org/1.5.7/$compile/ctreq?p0=uibAccordionGroup&p1=uibAccordionHeading
This the affected part of the code:
<div>
<uib-accordion>
<uib-accordion-group is-open="true">
<uib-accordion-heading>
{{vm.moduleMenu.name}}<i class="pull-right glyphicon"></i>
</uib-accordion-heading>
<div>... other content...</div>
</uib-accordion-group>
</uib-accordion>
</div>
What I did so far to solve this issue:
- I checked whether the correct files are included -> fine
- I checked the new source code whether the name of the directive has changed - it did not, it should work
- I searched for uibAccordionGroup controller, I haven't found it...
- I moved back the heading into uib-accordion-group tag - the error disappeared, but there is no style applied, just the heading text is displayed
- I deleted the uib-accordion-heading, the result is the same as above, the content of the accordion is displayed but there is no style applied
Have anybody met this issue previously?
Libraries:
- angular 1.5.7
- angular-ui 2.0.0
Thanks,