As a beginner in Angular 4, I am faced with the challenge of calling a jQuery function using an HTML tag from a method. The jQuery method is located in a separate file. How can I incorporate this into my Angular project? Here's an example:
sample() {
$.("represent-visualization").Sample();
}
The Sample function is defined in a jQuery file as follows:
(function( $ ){
$.fn.sample()
{
}
})(jquery);