My accordion's aren't opening up. I initially thought it was due to the ng-view as there have been many bugs reported. I tried both of these solutions but it doesn't seem like the a tag is causing the problem. I also moved the accordions outside of the ng-view and they still were not opening.
I'm using bootstrap 3 and angular-ui-bootstrap-tmpls.0.11.0.js
My App:
angular
.module('App', [
'ngRoute',
'templates',
'ui.bootstrap.tpls',
'ui.bootstrap',
])
.config(function ($routeProvider, $locationProvider) {
$routeProvider
.when('/doctor', {
templateUrl: 'doctor_profile.html',
controller: 'DoctorCtrl'
})
$locationProvider.html5Mode(true);
})
doctor_profile.html:
<accordion close-others="oneAtATime">
<accordion-group ng-repeat="doctor in doctors">
<accordion-heading>
<span>{{doctor.name}} </span>
</accordion-heading>
{{ doctor.type }}
</accordion-group>
</accordion>
and finally my controller
.controller('DoctorCtrl', function($scope) {
$scope.oneAtATime = false;
$scope.doctors = [
{
name: 'Dr. Bob ',
type: 'Orthopedic Surgery',
},
{
name: 'Dr. Ted',
type: 'Pediatritian',
},
$scope.status = {
isFirstOpen: true,
isFirstDisabled: false
};