Sure! You can decorate the directive and extend it or completely redefine it. Here is a great blog post
The easiest way is simply:
app.config(function($provide) { $provide.decorator('collapseDirective', function($delegate) { var directive = $delegate[0]; var link = function myLinkFnOverride(scope, element, attrs) {
which will completely redefine the original link function (you will need to copy all its contents and change the elements you need)
source share