diff --git a/README.md b/README.md index 36417bd..0cba39e 100644 --- a/README.md +++ b/README.md @@ -582,13 +582,13 @@ So, you can use `FlowRouter.subsReady` inside template helpers to show the loadi Sometimes, we need to use `FlowRouter.subsReady()` in places where an autorun is not available. One such example is inside an event handler. For such places, we can use the callback API of `FlowRouter.subsReady()`. ~~~js -Template.myTemplate.events( +Template.myTemplate.events({ "click #id": function(){ FlowRouter.subsReady("myPost", function() { // do something }); } -); +}); ~~~ > Arunoda has discussed more about Subscription Management in FlowRouter in [this](https://meteorhacks.com/flow-router-and-subscription-management.html#subscription-management) blog post about [FlowRouter and Subscription Management](https://meteorhacks.com/flow-router-and-subscription-management.html).