I am creating a web application in Angular 2. On one of the pages, I use a jQuery plugin called jquery-comments, to enable user comments.
Now I'd like to show a custom dialog box, if the user clicks the jquery-comments "Reply" button.
If it was jQuery, I would do something like:
$('.jquery-comments .reply').on('click', function (event) {
event.preventDefault();
...here I can show my custom dialog box or something else
});
But how would I make a similar event handler in Angular 2, without changing the jquery-comments plugin?