Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

TypeError: Object doesn't support this property or methodundefined  #4184

@davscro

Description

@davscro

Hi all,

I have some problems with IE8, seem it's related with $http, $q.
my get method in service is:

getDataByRadiusSearch: function (searchParams, searchField, searchTerm) {
            var deferred = $q.defer(); //promise
            $http({
                params: { lat: searchParams.latitude, lng: searchParams.longitude, miles: searchParams.radius, searchField: searchField, searchTerm: searchTerm },
                method: 'GET',
                url: '/api/data/dataByRadius'
            }).
            success(function (data, status, headers, config) {
                deferred.resolve(data);
            }).error(function (data, status, headers, config) {
                deferred.reject(status);
            });
            return deferred.promise;
        }

and in my controller i'm using follow code to fetch the data:

data.getDataByRadiusSearch(sp, "", "").then(function (data) {
            $scope.data = data;
        }, function (status) {
            console.log(status);
        });
}

And this perfectly works in all browsers but in IE8, there is javascript error : TypeError: Object doesn't support this property or methodundefined that screw up the app. Any idea what is the problem? By the way i'm using angular v1.2.0-rc.2 version.
Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions