Created
July 23, 2014 10:27
-
-
Save bitomule/f8848b1e718211143a76 to your computer and use it in GitHub Desktop.
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('project',{ | |
path: '/:_domain/projects/:_project', | |
onBeforeAction : 'loading', | |
data: function(){ | |
return {'name':this.params._domain}; | |
}, | |
waitOn: function(){ | |
var subscription = subs.subscribe('userDomain',this.params._domain,function(){ | |
if(Domains.find().count() <= 0) | |
{ | |
Router.go('register'); | |
} | |
}); | |
return [subscription]; | |
}, | |
onAfterAction: function(){ | |
document.title = "Project"; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment