prevent Angular html template from being briefly displayed while loading