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:
Edit1:
FireBug trace trace
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
source to share
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 / ...
source to share