Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Angular2 Loading Animation #2401


User avatar
0
paradoxit created

Where/how do I change the loading animation when first visiting the site? It's currently a spiner with circles of grey and black.

Thanks, David


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    It is done in main.ts here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/main.ts#L20">https://github.com/aspnetzero/aspnet-ze ... ain.ts#L20</a>. The line abp.ui.setBusy(); shows this animation and it uses blockUI plugin <a class="postlink" href="http://malsup.com/jquery/block/#page">http://malsup.com/jquery/block/#page</a>. You can see how to use a custom style in it's examples.

  • User Avatar
    0
    paradoxit created

    Thank you