AngularJs website templates not opening in Internet Explorer -
when open angularjs website in internet explorer gives warnings (html 1300 navigation occured) , errors somecontroller got undefined. website working fine chrome , firefox. problem ie , safari
code sample
$scope.loadmoresubcat = function (pageno = 2) { blockui.stop(); $http.get(apiurl).success(function (data) { $http.get(apiurl).success(function (data) { if (data.length) { angular.foreach(data, function (value, key) { $scope.listings.push(value); }); $scope.busy = false; } else { $scope.busy = true; $('#status').html('no more listings'); } }).error(function (err) { $('#status').html('no more listings'); }); pageno++; $rootscope.pageno = pageno; } }
you using es6 feature "default parameters", not implemented in ie.
function( pageno =2) {}
https://kangax.github.io/compat-table/es6/
you can use transpiler babel translate es6 code es5. or avoid using es6 features.
Comments
Post a Comment