I would do this by using the Angular recommended approach which is also easy to ... this.renderer.listen('window', 'click',(e:Event)=>{ // your code here}).
確定! 回上一頁