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

Prefix the directive tag name #6

Open
jrgleason opened this issue Oct 21, 2014 · 2 comments
Open

Prefix the directive tag name #6

jrgleason opened this issue Oct 21, 2014 · 2 comments

Comments

@jrgleason
Copy link

Per angular documentation...

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.

this to me means the directive should be something like sb-checkbox.

@sebastianha
Copy link
Owner

Good point, thank you very much for the hint!

@cesaralvarado9
Copy link

+1, I was going to say the exact same thing.

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

3 participants