Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.get('index.html', loadHomeView);
- this.get('#/index.html', loadHomeView);
- function loadHomeView() {
- if (auth.isAuthenticated()) {
- this.loggedIn = true;
- }
- this.loadPartials({
- header: './templates/common/header.hbs',
- footer: './templates/common/footer.hbs'
- }).then(function () {
- this.partial('./templates/home/home.hbs')
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement