Show angular-loading-bar And disable all contents of the page until page loads

后端 未结 4 628
天命终不由人
天命终不由人 2021-01-02 16:17

I have lots of ASP.NET Pages and server database connection.They takes some time to load fully when requested from server to client. Now I want to show a angular-loading-bar

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-02 17:17

    I am a huge fan of angular-loading-bar.

    No overlay by default, but you can easily tweak the loading-bar with this bit of CSS;

    #loading-bar {
      pointer-events: all;
      z-index: 99999;
      border: none;
      margin: 0px;
      padding: 0px;
      width: 100%;
      height: 100%;
      top: 0px;
      left: 0px;
      cursor: wait;
      position: fixed;
      background-color: rgba(0, 0, 0, 0.6);
    }
    

    Here is a demo.

提交回复
热议问题