Skip to content

storage.bind() doesn't work inside factory  #52

Description

@sqwk

storage.bind() doesn't work inside a factory, I assume because there is no scope.

Passing an object doesn't work either:

app.factory('someFactory', function(storage) {

    var settings = {
        foo: 'bar',
        lorem: 'ipsum'
    }

    storage.bind(settings,'foo');
});

This produces the error undefined is not a function at Object.publicMethods.bind

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions