1

I noticed that if I write datepicker in the index.html file then jquery knows how to handle it but if the same element is part of angular component then clicking on it will not open the colander meaning jquery doesn’t know this element. How can I make it recognize the element inside the component template?

1

1 Answer 1

1

At the top of your component ts file, you could try declaring jquery vars.

declare var $ = window.$;
declare var jQuery = window.jQuery;
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.