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

AngularJS incompatibility: need to unwrap elements when jqLite.data() is used #363

Closed
louisremi opened this issue Dec 9, 2013 · 1 comment

Comments

@louisremi
Copy link

When using a polymer element in an angular app, I noticed that Batarang is no longer able to report the scope attached to DOM elements. And the angular.element( <node> ).scope() that I wanted to use inside my polymer element to access my model doesn't work either, of course.

After a little bit of research I found that it had to do with the ShadowDOM wrapping, and patching the jqLiteExpandoStore and jqLiteData functions of Angular would solve the issue: I added window.unwrap && ( element = unwrap( element ) ); at the beginning of each of these functions (and jqLiteRemoveData as well).

I haven't been able to find exactly what needs to be changed in Polymer to avoid patching Angular. I hope you guys can help me out.
It might have to do with the expando thingy, which is a randomly named property that links data from a single cache to DOM elements.

@dfreedm
Copy link
Member

dfreedm commented Dec 17, 2013

I'm not familiar enough with Angular to replicate this scenario from your description. Can you link me to an example, or give me the steps that would expose the issue?

@sorvell sorvell closed this as completed Aug 11, 2014
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