This repository was archived by the owner on Feb 19, 2025. It is now read-only.
This repository was archived by the owner on Feb 19, 2025. It is now read-only.
Directive Aliases #382
Closed
Description
This is an idea for a new feature.
Lets say that EVERYONE prefixes their libs properly instead of imposing a global DSL:
- bs-tooltip
- bs-tabs
- ui-reset
- ph-txt
Now, lets say that I want to create a DSL but I don't want to re-define all these directives.
What if you could alias and stack these directives together? (say upon module.config or adding a third-party lib as a dependency)
<tabs title="Hello">
would essentially be the same as <li bs-tooltip bs-tabs ui-reset ph-txt title="Hello">
This way, people won't have to wonder if they should use the global namespace when making their library (like we do for angular/ui-bootstrap)!
In addition, you could create an alias for various configurations of the same directives!