Currently, I am utilizing the angular bootstrap ui third party library as a dependency in my angular application. One question that is on my mind is what would be the most effective method to enhance the functionality of directives and controllers within this particular library?
I am aware that one option is to directly make changes to the directives/controllers present in ui-bootstrap-tpls-0.11.0.js file. However, there's a concern that if I re-pull the dependencies on a build server, all my modifications will be erased. Moreover, updating the library version would also result in losing these changes. Therefore, I am seeking a more sustainable way to expand functionality.
For instance, let's say I aim to extend the datepicker directive to accommodate a customMethod or customData, followed by using them within the linking function. How can I achieve this seamlessly?
<datepicker ng-model="dt" custom-method="myCustomMethod()"
custom-attribute="myCustomAttribute" min-date="minDate"
show-weeks="true" class="well well-sm"></datepicker>
Your guidance on this matter would be greatly appreciated.