-
Notifications
You must be signed in to change notification settings - Fork 42
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 namespace prefix to avoid collision #37
Comments
Hey @TheSharpieOne thanks for the quick reply! I didn't notice the latest version is not displaying the warning message anymore. However, since the directive name is still the same one, it's being evaluated by angular, isn't it? I guess it would be better if it doesn't even execute the link function. I'm sure that time consumed in evaluating and instantiating is not that critical, but it's something to consider anyways. |
It doesn't really do anything if there is no ngModel attach to the element (the uib match shouldn't have an ngModel). angular-validation-match/src/angular-validation-match.js Lines 12 to 14 in a2056d2
Also, what makes more sense, EVERYONE except angular-bootstrap namespace there modules, or just angular-bootstrap use a namespace? If you library is going to have a large footprint that can overlap many others, it should deal with that and not depend on everyone else to adjust for it. |
@TheSharpieOne, by that same logic shouldn't you also prefix your directives as well? av-match or validation-match. Happy to submit a PR if you let me know what you'd prefer. |
This isn't a large project which contains many directives, but sure, go for it. I'll accept the PR and publish a new major version. |
Cool... I'll see what I can do next week. We have a project which we did On Thu, Jun 2, 2016 at 12:35 PM, Evan Sharp notifications@github.com
Darrel O'Pry |
No preference really, just something short |
cool, then I'll go for something like vm- I'm sure it'll conflict somewhere On Thu, Jun 2, 2016 at 7:27 PM, Evan Sharp notifications@github.com wrote:
Darrel O'Pry |
The typeahead directive from angular-bootstrap uses the match attribute which causes this directive to be evaluated resulting in the following warning in console: Match validation requires ngModel to be on the element.
It's not a big deal, but I think it's better to avoid potential problems in the future since angular-bootstrap is widely used.
The text was updated successfully, but these errors were encountered: