Used this link to update my accordion template. Now I need to replace another UI bootstrap template for carousel. Is there a way that I can chain the decorator functions together or should it be done another way? Also, what if I need to have various versions of the carousel? What then?
What i have right now obviously isn't working:
.config(['$provide', Decorate])
function Decorate($provide) {
$provide.decorator('accordionGroupDirective', function($delegate) {
var directive = $delegate[0];
directive.templateUrl = '/modules/projects/views/admin/templates/accordian.html';
return $delegate;
})
.decorator('carousel', function($delegate) {
var directive = $delegate[0];
directive.templateUrl = '/modules/projects/views/admin/templates/carousel.html';
return $delegate;
})
}