In this answer it is described how to remove an angular built-in directive.
Based on that idea my suggestion is to do this:
angular.module('myModule', [])
// ... registering some stuff on the module
.config(['$provide', function ($provide) {
// Remove the progress directive of 'ui.bootstrap'.
// Otherwise we cannot use native progress bar.
$provide.decorator('{DIRECTIVE_NAME}Directive', ['$delegate', function ($delegate) {
$delegate.pop();
return $delegate;
}]);
}]);
The $delegate.pop()
removes the last directive that has been added with the name {DIRECTIVE_NAME}
. So this should be the directive defined by yourself.