AngularJS路由设置方法
Module.config(['$routeProvider', function($routeProvider) { $routeProvider .when('/mall-home', { templateUrl: "template/mall-home.html?0726", controller: 'mallHome', }) .when('/shake-home', { templateUrl: "template/shake-home.html?0726", controller: 'shakeHome' }) .otherwise({ //路由地址有误跳转此路由 redirectTo: '/mall-home' }); }]);