{"action":"created","issue":{"url":"https://api.github.com/repos/aldeed/meteor-tabular/issues/81","labels_url":"https://api.github.com/repos/aldeed/meteor-tabular/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-tabular/issues/81/comments","events_url":"https://api.github.com/repos/aldeed/meteor-tabular/issues/81/events","html_url":"https://github.com/aldeed/meteor-tabular/issues/81","id":58914449,"number":81,"title":"How to access default subscription","user":{"login":"machwatt","id":3843667,"avatar_url":"https://avatars.githubusercontent.com/u/3843667?v=3","gravatar_id":"","url":"https://api.github.com/users/machwatt","html_url":"https://github.com/machwatt","followers_url":"https://api.github.com/users/machwatt/followers","following_url":"https://api.github.com/users/machwatt/following{/other_user}","gists_url":"https://api.github.com/users/machwatt/gists{/gist_id}","starred_url":"https://api.github.com/users/machwatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machwatt/subscriptions","organizations_url":"https://api.github.com/users/machwatt/orgs","repos_url":"https://api.github.com/users/machwatt/repos","events_url":"https://api.github.com/users/machwatt/events{/privacy}","received_events_url":"https://api.github.com/users/machwatt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-25T15:03:54Z","updated_at":"2015-02-25T19:13:47Z","closed_at":null,"body":"First things first:\r\nAwesome integration, fast, easy and smooth. Thanks for the work.\r\n\r\nMy question is, how would i get the mentioned default subscription, f.e if i want to waitOn in iron:router.\r\nSince my data source is above 10.000 items, it takes a time to load it into the datatables and i want to show custom loading template."},"comment":{"url":"https://api.github.com/repos/aldeed/meteor-tabular/issues/comments/76033699","html_url":"https://github.com/aldeed/meteor-tabular/issues/81#issuecomment-76033699","issue_url":"https://api.github.com/repos/aldeed/meteor-tabular/issues/81","id":76033699,"user":{"login":"kirilan","id":10254761,"avatar_url":"https://avatars.githubusercontent.com/u/10254761?v=3","gravatar_id":"","url":"https://api.github.com/users/kirilan","html_url":"https://github.com/kirilan","followers_url":"https://api.github.com/users/kirilan/followers","following_url":"https://api.github.com/users/kirilan/following{/other_user}","gists_url":"https://api.github.com/users/kirilan/gists{/gist_id}","starred_url":"https://api.github.com/users/kirilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirilan/subscriptions","organizations_url":"https://api.github.com/users/kirilan/orgs","repos_url":"https://api.github.com/users/kirilan/repos","events_url":"https://api.github.com/users/kirilan/events{/privacy}","received_events_url":"https://api.github.com/users/kirilan/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T19:13:47Z","updated_at":"2015-02-25T19:13:47Z","body":"here is how I have done it  this is my router config.js\r\n\r\n```\r\nRouter.configure({\r\n  layoutTemplate: 'mainLayout',\r\n  loadingTemplate: 'loading',\r\n\r\n  yieldTemplates: {\r\n    header: {\r\n      to: 'header'\r\n    },\r\n    footer: {\r\n      to: 'footer'\r\n    }\r\n  },\r\n\r\n  onAfterAction: function() {\r\n    $(document).scrollTop(0);\r\n  }\r\n});\r\n\r\nRouter.onBeforeAction('loading');\r\n```\r\nand then the actual route waits on the subscribtion like this\r\n\r\n```\r\n  this.route('dashboard', {\r\n    path: '/dashboard',\r\n    waitOn: function() {\r\n      return this.subscribe(\"pub1) && this.subscribe(\"pub2\");\r\n    },\r\n    onAfterAction: function() {\r\n      SEO.set({\r\n        title: 'Dashboard | ' + SEO.settings.title\r\n      });\r\n    }\r\n  });\r\n```\r\n\r\nhope that's clear enough"}}