Open geoffreyvd opened 7 years ago
I think it's because component fills only in ngAfterViewInit
.
I'm having the same problem.
I fixed it, will push or create a PR tonight or PM me if u need it fast
Please 🙏
@sggonzalezg
ngAfterViewChecked(): void { console.log(" after view is triggerd"); if(this.isInputChanged){ if (this.timelineElements && this.timelineElements.length) { for (let i = 0; i < this.timelineElements.length; i++) { if (this.timelineElements[i].selected) { this.selectedIndex = i; break; } } this.initTimeline(this.timelineElements); } } this.isInputChanged = false; }
and implement afterviewchecked
@sggonzalezg did it work?
@geoffreyvd
Sorry, I don't know hot to do that. I'm new in this. Can you explain to me step by step?
Thanks
As the title says: when i fill the timeline with elements at an asynchronous time, the timeline will not render. any ideas?