diff --git a/src/assets/scripts/app/index.js b/src/assets/scripts/app/index.js index cce1554..0384799 100644 --- a/src/assets/scripts/app/index.js +++ b/src/assets/scripts/app/index.js @@ -12,6 +12,7 @@ angular.module('NomitWisp', 'nwLogout', 'nwAds', 'nwAdsDetails', + 'nwProfile', ngRoute ]) @@ -31,10 +32,10 @@ angular.module('NomitWisp', controller: 'AdsDetailsController', templateUrl: 'assets/scripts/ads-details/ads-details.html' }) - // .when('/profile', { - // controller: 'ProfileController', - // templateUrl: '' - // }) + .when('/profile', { + controller: 'ProfileController', + templateUrl: 'assets/scripts/profile/profile.html' + }) // .when('/users', { // controller: 'UsersController', // templateUrl: '' diff --git a/src/assets/scripts/dashboard/dashboard.controller.js b/src/assets/scripts/dashboard/dashboard.controller.js index 2925ace..a9e483c 100644 --- a/src/assets/scripts/dashboard/dashboard.controller.js +++ b/src/assets/scripts/dashboard/dashboard.controller.js @@ -2,7 +2,7 @@ const DashboardController = ($scope, UserService) => { $scope.$on('loadUserSuccess', function(event, user) { $scope.user = user; - console.log($scope.user); + // tutte le funzioni del controller }); diff --git a/src/assets/scripts/dashboard/dashboard.html b/src/assets/scripts/dashboard/dashboard.html index bdc149e..7072d84 100644 --- a/src/assets/scripts/dashboard/dashboard.html +++ b/src/assets/scripts/dashboard/dashboard.html @@ -82,7 +82,7 @@
This text is only visible to Users
-This text is only visible to Companies
-This text is visible to both Nomit and Admin
-This text is only visible to Nomit
-This text is only visible to Admin
+This text is only visible to Users
+This text is only visible to Companies
+This text is visible to both Nomit and Admin
+This text is only visible to Nomit
+This text is only visible to Admin