大佬教程收集整理的这篇文章主要介绍了angularjs – ng-view不能在Microsoft Edge上运行,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
app.config( function ($routeProvider) { $routeProvider. when('/logout',{ template: '<logout-page></logout-page>' }) .when('/',{ template: '<application-manage></application-manage>' }) });
在我的索引中:
<body style="height: 100%"> <div class='main-div' style="height: 100%;" ng-view ng-class="slide">Loading....</div> </body>
第一种情况:’< application-manage>< / application-manage>‘它正常工作但是当我点击注销.它抛出错误:
SyntaxError <div class="main-div ng-scope" style="height: 100%" ng-class="slide" ng-view="">
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); });
来自:https://stackoverflow.com/questions/233507/how-to-log-out-user-from-web-site-using-basic-authentication
Try: app.config( function ($routeProvider) { $stateProvider .state('/logout',{ url:'/logout',template: '<ui-view>' }) .state('/',{ url:'/',template: '<ui-view>' }) }); You can Also use external html file,in this case use **templateUrl:'your file.html'**
以上是大佬教程为你收集整理的angularjs – ng-view不能在Microsoft Edge上运行全部内容,希望文章能够帮你解决angularjs – ng-view不能在Microsoft Edge上运行所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。