Angular js application shows blank white page on ios browsers, safari and chrome both. Works fine on windows desktop browsers

不打扰是莪最后的温柔 提交于 2020-01-04 05:33:21

问题


I have one redhat cloud application which front-end developed in Angular.js 1.5.5, it works perfectly fine on windows desktop and android device browsers where only on ios mobile browsers chrome or safari it shows blank white page. When I put sample loading text under body tag I was able to see that but nothing rendered except loadig text. To serve static content it has Node-Hapi.js server which has just basic stuff and static folder path. Below is application url -

http://restperformance-gunjankrs.rhcloud.com/


回答1:


Change code line

let myApp = angular.module('myApp', ['blockUI']);

to

var myApp = angular.module('myApp', ['blockUI']);

as 'let' is not supported in strict mode on iOS and Safari.

var myApp = angular.module('myApp', ['blockUI']);

Also change those:

var requestObj = $scope.serviceData;
    var req = {


来源:https://stackoverflow.com/questions/38193251/angular-js-application-shows-blank-white-page-on-ios-browsers-safari-and-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!