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

in 1.3.0-rc5 'this' is undefined in service's factory call #9511

Closed
@amaillere

Description

@amaillere

new enforceReturnValue feature in 1.3.0-rc5 0d3b69a results in 'this' being undefined in factory call :

angular.module('users').factory('Authentication', [
    function() {
        var _this = this;
        _this._data = {  // ERROR HERE 
            user: window.user
        };
        return _this._data;
    }
]);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions