Skip to content

Instantly share code, notes, and snippets.

@bitomule
Created July 14, 2014 09:22
Show Gist options
  • Save bitomule/d300aa90a7fd55c47455 to your computer and use it in GitHub Desktop.
Save bitomule/d300aa90a7fd55c47455 to your computer and use it in GitHub Desktop.
Route error
this.route('home',{
path: '/:_domain',
data: function(){
if(domains.find().count() <= 0)
{
Router.go('register');
}
return {'name':this.params._domain};
},
waitOn: function(){
return Meteor.subscribe('userDomain',this.params._domain);
},
action: function(){
if(this.ready()){
this.render();
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment