Angularjs supports Mozilla Firefox browser version 3.0.11

Do you know if AngularJS supports Mozilla Firefox version 3.0.11? I have developed an app using AngularJS but it doesn't work in the browser version. Please tell me which version of Mozilla Firefox supports AngularJS version.

Edit:

Spec: Browser - Firefox 3.0.11, AngularJS v1.3.1

code:

<body data-ng-controller="samplesController">   
    <script type="text/javascript">
if (!Object.keys) {
  Object.keys = (function() {
    'use strict';
    var hasOwnProperty = Object.prototype.hasOwnProperty,
        hasDontEnumBug = !({ toString: null }).propertyIsEnumerable('toString'),
        dontEnums = [
          'toString',
          'toLocaleString',
          'valueOf',
          'hasOwnProperty',
          'isPrototypeOf',
          'propertyIsEnumerable',
          'constructor'
        ],
        dontEnumsLength = dontEnums.length;

    return function(obj) {
      if (typeof obj !== 'object' && (typeof obj !== 'function' || obj === null)) {
        throw new TypeError('Object.keys called on non-object');
      }

      var result = [], prop, i;

      for (prop in obj) {
        if (hasOwnProperty.call(obj, prop)) {
          result.push(prop);
        }
      }

      if (hasDontEnumBug) {
        for (i = 0; i < dontEnumsLength; i++) {
          if (hasOwnProperty.call(obj, dontEnums[i])) {
            result.push(dontEnums[i]);
          }
        }
      }
      return result;
    };
  }());
}
    </script>
        <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.1/angular.min.js"></script>
    <script src="Scripts/jquery.min.js"></script>

      

Error screenshot:

enter image description here

Edit1:

FireBug trace trace

enter image description here

Edit2:

I added the following two lines above angularjs

<script src="js/es5-shim.js"></script>
<script src="js/es5-sham.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.1/angular.js"></script>

      

But still I get two errors

enter image description here

+3


source to share


2 answers


Try adding id="ng-app"

next to your ad ng-app="app"

.

<html ng-app="app" id="ng-app">

      



It will work with IE 8 and sometimes firefox and try to omit angularjs version from 1.2.x

0


source


AngularJS only provides compatibility information for Internet Explorer.

However, AngularJS 1.3.x is not known to be compatible with Firefox 3 due to its use of Object.keys

.



See this answer to make AngularJS compatible with Firefox 3 (using the Object.keys shim): fooobar.com/questions/1542054 / ...

+2


source







All Articles