This commit is contained in:
Quentin Rouland 2017-03-14 05:04:19 +01:00
commit 9e9b92dd56
5 changed files with 6 additions and 6 deletions

View File

@ -52,7 +52,7 @@
<!-- build:js({.tmp,app}) scripts/scripts.js -->
<script src="scripts/app.js"></script>
<script src="scripts/controllers/login.js"></script>
<script src="scripts/controllers/userSpace.js"></script>
<script src="scripts/controllers/studentSpace.js"></script>
<!-- endbuild -->
</body>
</html>

View File

@ -32,9 +32,9 @@ app.config(function ($stateProvider, $urlRouterProvider) {
controller: 'LoginCtrl'
})
.state('userspace', {
.state('studentSpace', {
url: '/espace-etudiant',
templateUrl: 'views/userSpace.html',
controller: 'UserSpaceCtrl'
templateUrl: 'views/studentSpace.html',
controller: 'StudentSpaceCtrl'
});
});

View File

@ -18,7 +18,7 @@
function login() {
console.log('login');
$state.go('userspace');
$state.go('studentSpace');
}
// Private methods ------------------

View File

@ -2,7 +2,7 @@
'use strict';
angular.module('clientApp')
.controller('UserSpaceCtrl', ['$scope', '$state',
.controller('StudentSpaceCtrl', ['$scope', '$state',
function ($scope, $state) {
$scope.toggleAccordion = toggleAccordion;