Skip to content

Commit

Permalink
Step 5.22: Add profile route state
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB authored and Dotan Simha committed Nov 22, 2016
1 parent 6a12b7b commit a42db51
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/routes.js
Expand Up @@ -47,6 +47,14 @@ class RoutesConfig extends Config {
url: '/confirmation/:phone',
templateUrl: 'templates/confirmation.html',
controller: 'ConfirmationCtrl as confirmation'
})
.state('profile', {
url: '/profile',
templateUrl: 'templates/profile.html',
controller: 'ProfileCtrl as profile',
resolve: {
user: this.isAuthorized
}
});

this.$urlRouterProvider.otherwise('tab/chats');
Expand Down

0 comments on commit a42db51

Please sign in to comment.