commit 87d558b70dd56d505de90b358fa936bfa6462355 parent eb0ab228e1c28ea4d7e4087e1a0975f90e1e324f Author: MTRNord <mtrnord1@gmail.com> Date: Sun, 18 Mar 2018 18:44:34 +0100 Debug what el actually is Diffstat:
| M | src/app/tweet-list/tweet-list.component.ts | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/app/tweet-list/tweet-list.component.ts b/src/app/tweet-list/tweet-list.component.ts @@ -31,7 +31,9 @@ export class TweetListComponent implements OnInit { }); } - public goTo(el: QueryList<ElementRef>, which: string): void { + public goTo(el: any, which: string): void { + console.log(el) + console.log(typeof el) el.toArray().forEach((value: ElementRef, index: number, array: ElementRef[]) => { if (value.nativeElement.id === which) { console.log(value);