I have a problem with Accordion:
I try to do the same as demo shows, I have an array of objects . Each object contains a string, which is the title of the title . It also contains a string, which is the relative path to another HTML file, which should be the contents of the accordion group.
$scope.groups = [{ groupTitle: "Title1", templateUrl: "sites/file1.html" }, { groupTitle: "Title2", templateUrl: "sites/file2.html" }];
This code is in the controller named AccordionController . In my HTML, I have this code inside my controller
<accordion> <accordion-group ng-repeat="group in groups" heading="{{group.groupTitle}}"> <div ng-include="group.templateUrl"></div> </accordion-group> </accordion>
ng-include and this stuff works, but groups basically donβt respond to clicks to open or close, I also tried to add the is-open directive. The parameter I pointed to is a boolean array that changes specific values ββto ng-click
The annoying thing that I really don't understand is that it all works here at Plunker
I also knitted
<link rel="stylesheet" type="text/css" href="styles/bootstrap.min.css" /> <script type="text/javascript" src="scripts/angular.js"></script> <script type="text/javascript" src="scripts/ui-bootstrap-tpls-0.12.0.js"></script>
and added bootstrap.ui to my module.
I get an error: TypeError: undefined is not a function in the console at boot time.
I would be grateful for any help!