I have an issue in my Angular5 application where it takes an additional click or any key press on keyboard to render my components. I have tried adding cd.detectChanges() and also tried using blur() method to remove focus on my search box (users enter some text and hit enter on inputbox and I am supposed to render some related components related to that search). When I manually click anywhere on the page or press any key the required components gets loaded and until then it shows the previous components. It's almost like change detection is happening when an additional event gets fired. I even tried generating click event manually and nothing happened. Any help would be appreciated... thanks for your time!
There is a similar post for Angular 2, but I have tried all the solutions mentioned in that post. - Angular2 - Change detection not showing unless clicked