From 1a626cb67dadf290d9678f3872e31bfd14880e61 Mon Sep 17 00:00:00 2001 From: james1293 Date: Thu, 6 Jul 2017 10:05:07 -0400 Subject: [PATCH] Add example: FlowRouter.subsReady(function() {} ) To show that you can wait on *all* subs before callback function runs. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index c6ba18b..1105c61 100644 --- a/README.md +++ b/README.md @@ -588,6 +588,10 @@ Template.myTemplate.events({ FlowRouter.subsReady("myPost", function() { // do something }); + // Or, to run the callback when all subs are ready: + FlowRouter.subsReady(function() { + // do something + }); } }); ~~~