commit 74ded9555dae08b5a53e4b656c7b6f62aca626ca parent 100eb0e369fd6a81e1b0d24c755b7aafefe74a9f Author: MTRNord <mtrnord1@gmail.com> Date: Sun, 18 Mar 2018 20:01:39 +0100 Still not doing what I expect it to do Diffstat:
| M | src/app/tweet-list/tweet-list.component.ts | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/app/tweet-list/tweet-list.component.ts b/src/app/tweet-list/tweet-list.component.ts @@ -31,8 +31,9 @@ export class TweetListComponent implements OnInit { }); } - public goTo(el: HTMLAnchorElement): void { - el.scrollIntoView(); + public goTo(el: ElementRef): void { + el.nativeElement.style.display = 'block'; + el.nativeElement.scrollIntoView(); } ngOnInit() {