ng-view无法在Microsoft Edge上运行

Le *_* Sy 12 angularjs angularjs-directive angularjs-ng-click ng-view microsoft-edge

我正在Microsoft Edge上测试我的应用程序,它会抛出此错误:

    app.config(
        function ($routeProvider) {
      $routeProvider.
          when('/logout', {
              template: '<logout-page></logout-page>'
          })
          .when('/', {
              template: '<application-manage></application-manage>'
          })
});
Run Code Online (Sandbox Code Playgroud)

在我的索引中:

<body  style="height: 100%">
<div class='main-div' style="height: 100%;" ng-view ng-class="slide">Loading....</div>
</body>
Run Code Online (Sandbox Code Playgroud)

第一种情况:'<application-manage></application-manage>'它正常工作.但是当我点击退出时.它抛出错误:

SyntaxError <div class="main-div ng-scope" style="height: 100%" ng-class="slide" ng-view="">
Run Code Online (Sandbox Code Playgroud)

感谢大家.问题解决了,这是因为我使用基本身份验证的方式:

jQuery.ajax({
              type: "GET",
              url: logoutURL ,
              async: true,
              username: fakeUser,
              password: fakePassword,
              headers: {"Authorization": "Basic Authorization"}
          }).done(function () {
             console.log("Can not logout Basic Authentication in this browser");
         defer.resolve(true);
            }).fail(function () {
                console.log("You have successfully logged out!");
                defer.resolve(true);
           });
Run Code Online (Sandbox Code Playgroud)

从: http://stackoverflow.com/questions/233507/how-to-log-out-user-from-web-site-using-basic-authentication

Omk*_*ara -5

在此建议,您能否提供应用程序的 HTML 名称,如下所示:

ng-app="XYZManagementApp"
Run Code Online (Sandbox Code Playgroud)