angularng-container

Is there some way to bind a click to a ng-container?


I've got a component made of a ng-container, I would like to bind a click on it. (click) doesn't do the job.

Is there another way to do it ?


Solution

  • Actually, @HostListener('click', ['$event']) in the code does the job.

    Asking the question made me think of it.