Advertisement
valchak

Sammy Routing

Apr 9th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         this.get('index.html', loadHomeView);
  2.         this.get('#/index.html', loadHomeView);
  3.  
  4.         function loadHomeView() {
  5.             if (auth.isAuthenticated()) {
  6.                 this.loggedIn = true;
  7.             }  
  8.             this.loadPartials({
  9.                 header: './templates/common/header.hbs',
  10.                 footer: './templates/common/footer.hbs'
  11.             }).then(function () {
  12.                 this.partial('./templates/home/home.hbs')
  13.             });      
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement