的代碼這幅作品與CDN https://ajax.googleapis.com/ajax/libs/angularjs/1.2.3//angular-route.min.js 但與https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6//angular-route.min.js
在哪裏的問題絕對優良的工作?
config.jsAngularjs路由選擇不與版本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'
});
}]);