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'
    });
}]);

 

相关文章:

  • 2021-06-03
  • 2021-09-22
  • 2022-02-28
  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
  • 2021-08-24
猜你喜欢
  • 2021-09-03
  • 2022-12-23
  • 2021-12-27
  • 2022-01-29
  • 2021-07-18
  • 2021-05-08
相关资源
相似解决方案