I have a table and I want align an element outside the table to a column. I thought I could get the offsetLeft property to calculate this. But this didn´t work out for me.
ngOnInit(){
...
window.addEventListener('resize', this.setOffset);
}
ngAfterViewInit(){
this.setOffset();
}
setOffset(){
this.offsetLeft = document.getElementById("myId").offsetLeft;
}