这是代码: angular.module('kontrol',['ngRoute'])
.config(['$locationProvider', '$routeProvider', '$provide', function ($locationProvider, $routeProvider) {
$locationProvider.html5Mode(true)
$locationProvider.hashPrefix('!')
$routeProvider.when('/profile', {
templateUrl: 'partials/pro.html',
controller: 'kontrola'
})
}])