1

I used document.querySelectorAll()to select my class in view. I got problems when my class was included from another file.

How to use document.querySelectorAll() if I import my file using ng-include?

3
  • Can you update your question code. And explain the scenario where you used document.querySelectorAll() in the both the files. Commented Oct 4, 2016 at 4:55
  • probably using it in wrong part of app and chances are you don't even need to use it. Provide sample code Commented Oct 4, 2016 at 5:07
  • I got the answer...I need to put in my included file with ng-controller="MyCtrl" and it is working. Thanks for all comments. Commented Oct 4, 2016 at 6:44

1 Answer 1

0

I got the answer...I need to put in my included file with ng-controller="MyCtrl" and it is working.

Thanks for any comments.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.