Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Router.map(function() {
  2. this.route('home', {path: '/'});
  3. this.route('portfolios', {
  4. waitOn: function() {
  5. if (Meteor.userId()) {
  6. Meteor.subscribe('modelPortfolios');
  7. Meteor.subscribe('userPortfolios', { userId : Meteor.userId() } );
  8. }
  9. else {
  10. this.pause();
  11. }
  12. }
  13. });
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement