angular scroll to element horizontally

JavaScript
@ViewChild('widgetsContent') widgetsContent: ElementRef;
scrollLeft(){
    this.widgetsContent.nativeElement.scrollLeft -= 150;
  }

  scrollRight(){
    this.widgetsContent.nativeElement.scrollLeft += 150;
  }

Source

Also in JavaScript: