Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use prefix for directives to avoid namespace collisions #47

Open
davestaab opened this issue Aug 10, 2015 · 1 comment
Open

Use prefix for directives to avoid namespace collisions #47

davestaab opened this issue Aug 10, 2015 · 1 comment

Comments

@davestaab
Copy link

From the angular docs:

Best Practice: In order to avoid collisions with some future standard, it's best to prefix your own directive names. For instance, if you created a <carousel> directive, it would be problematic if HTML7 introduced the same element. A two or three letter prefix (e.g. btfCarousel) works well. Similarly, do not prefix your own directives with ng or they might conflict with directives included in a future version of Angular.

See the Creating Directives section of the Angular Docs.

@davestaab
Copy link
Author

Also, your package name ui.bootstrap.showErrors seems to imply you are associated with the Angular ui project. It doesn't appear you are and this seems misleading.

Sorry to sound so negative. Great job on this and great blog post explaining it. Very helpful. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant