Invoke a client js function in Meteor after getting results from the server

前端 未结 4 2161
猫巷女王i
猫巷女王i 2020-12-14 13:27

I\'m trying to see how can I invoke a js function after the client gets a result from a Meteor method call. The only thing I was able to get is to invoke the function

4条回答
  •  鱼传尺愫
    2020-12-14 14:01

    I like what Zeke said, but for people who uses Meteor 0.5.0+, use Deps.autorun instead of autosubscribe... details at: https://groups.google.com/forum/#!topic/meteor-core/mTa81RLvhbY and http://www.meteor.com/blog/2013/02/14/meteor-055-devshop-code-and-community-contributions

提交回复
热议问题