Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Router.map(function() {
- this.route('home', {path: '/'});
- this.route('portfolios', {
- waitOn: function() {
- if (Meteor.userId()) {
- Meteor.subscribe('modelPortfolios');
- Meteor.subscribe('userPortfolios', { userId : Meteor.userId() } );
- }
- else {
- this.pause();
- }
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement