Ionic 3: Don't show the html before all data is loaded


What can i do to prevent the html to be displayed before all data is retrieved from the api?
In other word, i need to display a loading spinner and prepare the view in the bg then i hide the spinner and show the html view


Change the way you define what constitutes “the html”. ngIf can be helpful.