What is the write way to fetch user data and permissions before any component Loads? : We are building an angular application. Which will be behind and authentication server. So we are not building any login forms. We have rest endpoint which will give me currently logged in user info and their permissions to view pages in angular for which I have created gaurds. I written a sevice to fetch the details as well.

Now My problem is app component is loaded before I fetch the details and display content to user. 

What is recommended way for these situations. 

Thanks,
Mahesh B