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

ng-show #1

Open
ghost opened this issue Apr 24, 2014 · 1 comment
Open

ng-show #1

ghost opened this issue Apr 24, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 24, 2014

I loe the concept of the directive. When I include the dm.Style model as a dependency in my app, ng-show no longer works. Inspecting the dom, I find that the "display:none" style is simply not applied. Any idea why?

@roddym
Copy link

roddym commented Aug 29, 2014

I saw the same problem - the style directive as implemented breaks the style angular inserts in the head. I'm sure there are a bunch of ways to solve this. I chose to do this (using jquery)
if (element.html() && !$.contains(document.head,element.get(0))) {
which prevents the style directive from working inside the head (which isn't an issue for me but might be for others).

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