uxxman / angular-accordion

A simple angular directive for adding accordion UI element
MIT License
54 stars 37 forks source link

Controller 'angAccordion', required by directive 'collapsibleItem', can't be found! #34

Open chriscrosscutler opened 6 years ago

chriscrosscutler commented 6 years ago

I am using the accordion on a dashboard:

`

                    <ang-accordion>
                        <tr class="survey-template" ng-repeat="template in templates" id="{{$index}}">
                            <collapsible-item item-title="{{template.name}}">
                                <button ng-click="useTemplate(template)">Use</button>
                                <div class="template-question" ng-repeat="q in template.questions">
                                    {{q}}
                                </div>
                            </collapsible-item>
                        </tr>
                    </ang-accordion>
                </table>`

I initially included the library like this: .module('app',['ngAnimate', "ngSanitize", "mgcrea.ngStrap", 'angular-google-analytics', 'ngCookies', 'ngclipboard', 'ng.deviceDetector', 'angAccordion'])

Any idea why it can't find the controller?

Select a Template to Use