meteorjs iron-router waitOn and using as data on rendered

后端 未结 4 687
长情又很酷
长情又很酷 2020-12-14 22:46

I try to get the returned data in my Template.rendered function.

The current code is:

this.route(\'editCat\', {
    layoutTemplate : \'l         


        
4条回答
  •  情深已故
    2020-12-14 23:30

    Using the action hook to check for this.ready() works, but it looks like the official way to do this is to call the following:

    Router.onBeforeAction("loading");
    

    Reference: https://github.com/EventedMind/iron-router/issues/679

提交回复
热议问题