How to do preloader for `ng-view` in Angular JS?

后端 未结 3 1113
攒了一身酷
攒了一身酷 2021-01-07 00:21

I use

on web page. When I click link in block
is loaded HTML template was set in routeProvider
3条回答
  •  孤城傲影
    2021-01-07 00:40

    You can try something like this(simplest solution):

    1. Set your loader animation/picture:

    2. On div element add click event:

    3. Then AJAX request success set isLoading=true

提交回复
热议问题