Ce morceau de code fonctionne parfaitement bien avec cdn https://ajax.googleapis.com/ajax/libs/angularjs/1.2.3//angular-route.min.js mais pas avec https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6//angular-route.min.js
Où est le problème?
config.jsAngularJS le routage ne fonctionne pas avec la version 1.5.6
var mainApp = angular.module("mainApp", ['ngRoute']);
mainApp.config(['$locationProvider','$routeProvider',function($locationProvider,$routeProvider)
{
// $locationProvider.hashPrefix('!');
$routeProvider
.when('/home', {
templateUrl: 'home.html',
controller: 'StudentController'
})
.when('/viewStudents', {
templateUrl: 'viewStudents.html',
controller: 'StudentController'
})
.otherwise({
redirectTo: '/home'
});
}]);