Is there any way to configure directive
that comes from a third-party library?
I'm using a library called angular-tablesort and I want to disable the scope: true
option that it sets in its directive
:
tableSortModule.directive('tsWrapper', ['$parse', '$compile', function( $parse, $compile ) {
return {
scope: true,
controller: ['$scope', 'tableSortConfig', function($scope, tableSortConfig ) { /* ... */ }
}
}]);
Is there any way to do it w/o modifying the source code of this library?