In my angular 2 application I am fetching navigation data from my database with the help of a web API. I have written the code to fetch the data from the web API in a ngOnInit function in my navigation component.
Is there any way to keep waiting until the data is not received so that the user doesn't see the page without the navigation menus?