Commit
chapter13-5
- Loading branch information
There are no files selected for viewing
4 comments
on commit 9014a07
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without these two improvements this code does not work. Controllers have to be set in each case.
Router.route('/new/:postsLimit?', { name: 'newPosts', controller: NewPostsListController });
and
Router.route('/best/:postsLimit?', { name: 'bestPosts', controller: BestPostsListController });
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My app works perfectly fine without those "improvements" you said.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hassan, thanks for your comment. I followed the Meteor book and code does not match with the one that is here, although the app should be absolutely the same. In my case I had to make those changes to make it work. So if someone else struggles in the future, he might use this. Hope it makes sense. Im glad it works fine as it is with you :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably my book is up to date!!! Code is exactly as here (till now).
Cheers!
controller: NewPostsListController