Skip to content

Commit

Permalink
Merge pull request #502 from RamyElkest/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
arunoda committed Jan 26, 2016
2 parents 99937e2 + d59c28e commit 182bdd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 182bdd3

Please sign in to comment.