gunjan gunjan - 1 year ago 100
AngularJS Question

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

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 -

Answer Source

Change 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 = {