Angularjs tab Loading spinner while rendering

前端 未结 5 1977
别跟我提以往
别跟我提以往 2021-02-05 10:51

I have a page with some tabs and each tab has large amount of angularjs bindings.This is sample page where i am facing issue.Each tabs take about 10 seconds to render.

5条回答
  •  耶瑟儿~
    2021-02-05 11:04

    I usually solve this in my HTML using ng-if.

    In your case this would become something like:

      Content loading... No tabs available
    • {{tab.title}}

提交回复
热议问题