Displaying loader while meteor collection loads

前端 未结 3 1112
旧巷少年郎
旧巷少年郎 2020-11-29 03:57

I have a template, task_list, that looks like this:

{{#each tasks}}
    {{> task}}
{{/each}}

Template.task_list.tasks

3条回答
  •  半阙折子戏
    2020-11-29 04:10

    There have been some nice packages released in the meantime. Check out these two:

    1. Spin - displays a spinning wheel. With Iron Router, you can specify a loading template which shows the spinning wheel.
    2. Iron Router Progress - shows a progress bar on the top of the page (Youtube style)

    They both work pretty much out of the box, have a look at their documentation for more advanced options.

提交回复
热议问题