I am testing my application on Microsoft Edge and it throws this error:
    app.config(
        function ($routeProvider) {
      $routeProvider.
          when('/logout', {
              template: '<logout-page></logout-page>'
          })
          .when('/', {
              template: '<application-manage></application-manage>'
          })
});
In my index:
<body  style="height: 100%">
<div class='main-div' style="height: 100%;" ng-view ng-class="slide">Loading....</div>
</body>
With the first case: '<application-manage></application-manage>' it's working normal. But when I click logout. It throws error:
SyntaxError <div class="main-div ng-scope" style="height: 100%" ng-class="slide" ng-view="">
Thanks everyone. The problem is solved, it's because of the way I am using basic authentication:
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);
           });
From: http://stackoverflow.com/questions/233507/how-to-log-out-user-from-web-site-using-basic-authentication
 
     
    