From a42db5147480ebfe50d0118b7cf902d5810abd29 Mon Sep 17 00:00:00 2001 From: DAB0mB Date: Sun, 1 May 2016 23:01:06 +0300 Subject: [PATCH] Step 5.22: Add profile route state --- src/routes.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/routes.js b/src/routes.js index 54e1f97..cec44ab 100644 --- a/src/routes.js +++ b/src/routes.js @@ -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');