Created
July 14, 2014 09:22
-
-
Save bitomule/d300aa90a7fd55c47455 to your computer and use it in GitHub Desktop.
Route error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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