{"action":"closed","issue":{"url":"https://api.github.com/repos/meteorhacks/flow-router/issues/120","labels_url":"https://api.github.com/repos/meteorhacks/flow-router/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/meteorhacks/flow-router/issues/120/comments","events_url":"https://api.github.com/repos/meteorhacks/flow-router/issues/120/events","html_url":"https://github.com/meteorhacks/flow-router/issues/120","id":79723816,"number":120,"title":"Accept callback for `subsReady`","user":{"login":"arunoda","id":50838,"avatar_url":"https://avatars.githubusercontent.com/u/50838?v=3","gravatar_id":"","url":"https://api.github.com/users/arunoda","html_url":"https://github.com/arunoda","followers_url":"https://api.github.com/users/arunoda/followers","following_url":"https://api.github.com/users/arunoda/following{/other_user}","gists_url":"https://api.github.com/users/arunoda/gists{/gist_id}","starred_url":"https://api.github.com/users/arunoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arunoda/subscriptions","organizations_url":"https://api.github.com/users/arunoda/orgs","repos_url":"https://api.github.com/users/arunoda/repos","events_url":"https://api.github.com/users/arunoda/events{/privacy}","received_events_url":"https://api.github.com/users/arunoda/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteorhacks/flow-router/labels/feature","name":"feature","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-23T04:30:53Z","updated_at":"2015-05-26T17:39:08Z","closed_at":"2015-05-26T17:39:08Z","body":"This is very useful for events where we don't have to run a autorun. \r\nSee this issue: https://github.com/meteorhacks/flow-router/issues/119#issuecomment-104836746\r\n\r\nHere's the suggest API:\r\n\r\n~~~js\r\nTemplate.myTemplate.events(\r\n   'click #id': function(){\r\n      FlowRouter.subsReady(\"myPost\", function() {\r\n         // do something\r\n      });\r\n  }\r\n)\r\n~~~\r\n"}}