Angular extend directive custom library


Topic: Angular extend directive custom library

Cicciokr asked 5 years ago

Hi, i want to buy Pro version but have a question. I can create a Angular Library in witch i can expose new custom directive that extend mdbootstrap directive? and there is some tutorial or example?

So explain: bs-collpase -> cc-collapse mdb-modal -> cc-modal

Thank you


Arkadiusz Idzikowski staff answered 5 years ago

Changing the functionality of the component by extending its class can be problematic because of the private/protected properties. That's definitely not something we want to support, there are just too many factors that can cause problems to consider and document.

If you just need to use a different selector, you can always create a custom component-wrapper and add MDB component to its template.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 9.3.0
  • Device: desktop
  • Browser: chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: No