I wanted to test this part of code :
ngAfterViewInit(): void { this.sub = fromEvent($(#myModal), \'hide.bs.modal\').subcribe( () => { // some stuff