search

Home  >  Q&A  >  body text

Please ask: When angular.js loads different content, use different loading waiting pages.

Unified loading page can be achieved using factory('RequestInjector',[fucntion]);.
When the application needs to load different waiting pictures in different places, is there any special method in angularjs

天蓬老师天蓬老师2828 days ago566

reply all(1)I'll reply

  • 黄舟

    黄舟2017-05-15 17:08:50

    You can write a command and place it on the public parent top-level page, such as index
    For example:

    <loading request-type="someType"></loading>

    Then you can use this command to generate corresponding loading templates when receiving different types to create a global loading screen.

    reply
    0
  • Cancelreply