已达到angularjs$digest()迭代次数流产!以角速度运行angularjs

wi3ka0sx  于 2021-09-29  发布在  Java
关注(0)|答案(0)|浏览(195)

早上好
我有一个angularjs应用程序(我遵循了以下教程:https://www.toptal.com/angular-js/a-step-by-step-guide-to-your-first-angularjs-app )到目前为止,该应用程序运行良好,
然后我想使用angular库(angular auth oidc client)添加一个使用KeyClope的oidc身份验证,我需要在angular中运行我的angularjs应用程序(很好,我按照本教程这样做了)https://medium.com/lapis/running-angularjs-1-6-in-angular-5-side-by-side-d2ed771e2a8f).
我的问题是,当我在登录KeyClope后被重定向到我的应用程序时,我在控制台中遇到了这个错误,我无法通过查看已发布的问题来解决。

即使出现在我的搜索栏中的链接是(http://localhost:4200/#/drivers)它不会打开它,直到我手动打开它,同时点击它,然后点击进入
app.js

var moduleF1 = angular.module('F1FeederApp', [
    'F1FeederApp.controllers',
    'F1FeederApp.services',
    'ngRoute'
])
.
config(['$routeProvider', function($routeProvider) {
  $routeProvider.
    when("/drivers", {templateUrl: envApplication.repertoirePartials +"drivers.html", controller: "driversController"}).
    when("/drivers/:id", {templateUrl: envApplication.repertoirePartials +"driver.html", controller: "driverController"});
    //.otherwise({redirectTo: '/drivers'});
}]);

moduleF1.config(function($sceDelegateProvider) {
    $sceDelegateProvider.resourceUrlWhitelist([
        'self',
        'http://ergast.com/**'
      ])
    });

index.html

<!doctype html>
<html lang="en">
<head>
  <base href="/">
  <meta charset="utf-8">
  <title>u34</title>
  <base href="/">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
  <app-root></app-root>
</body>
</html>

angular.json

"scripts": [
              "src/ng1/app/public/scripts/jqueryPlugin/jquery-1.7.2.min.js",
              "src/ng1/app/squaleNG/app/lib/angular/angular.js",
              "src/ng1/app/squaleNG/app/lib/angular/angular-ui-router.js",
              "src/ng1/app/squaleNG/app/lib/angular/angular-route.js",
              "src/ng1/app/squaleNG/app/config/config.js",
              "src/ng1/app/squaleNG/app/js/controller/driversController.js",
              "src/ng1/app/squaleNG/app/js/service/services.js",
              "src/ng1/app/squaleNG/app/js/app.js"
            ]

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题