routes.js 388 B

12345678910111213141516171819
  1. Router.configure({
  2. layoutTemplate: 'layout' //can be any template name
  3. });
  4. Router.map(function () {
  5. this.route('home', {
  6. path: '/',
  7. });
  8. this.route('management', function() {
  9. this.subscribe('projects').wait();
  10. if (this.ready()) {
  11. this.render();
  12. } else {
  13. this.render('Loading');
  14. }
  15. });
  16. });