Skip to content

Use prefix for directives to avoid namespace collisions #47

Open

Description

@davestaab

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.

Activity

  1. davestaab commented on Aug 10, 2015

    @davestaab
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions