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

"Looking up elements via selectors" error #4

Closed
ricolo opened this issue Sep 2, 2015 · 3 comments
Closed

"Looking up elements via selectors" error #4

ricolo opened this issue Sep 2, 2015 · 3 comments

Comments

@ricolo
Copy link

ricolo commented Sep 2, 2015

Hi @jvandemo, thanks for creating this plugin. As soon as I add the line <update-meta name="apple-mobile-web-app-status-bar-style" content="black"> in my view template, I get the following error:

Error: [jqLite:nosel] Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element

In your directive, the line angular.element('meta[name=' + scope.name + ']') triggers the error in my debug mode. I also try to include jQuery but does not resolve the issue. Would you advise what goes wrong here? My AngularJS is at version 1.4.3.

@jvandemo
Copy link
Owner

jvandemo commented Sep 3, 2015

@ricolo — Thanks for reporting!

I have released v1.4.0 to use the native document.querySelector() method instead.

Can you try upgrading to v1.4.0 and see if it works as expected?

Thanks in advance!

@ricolo
Copy link
Author

ricolo commented Sep 3, 2015

@jvandemo, thanks so much for the quick fix! I tested it briefly and seemed to work well.

@jvandemo
Copy link
Owner

jvandemo commented Sep 3, 2015

@ricolo — Thanks for the confirmation, great to hear!

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

2 participants