Skip to content

Changes to accessing Custom Data  #2812

Closed
@yulin-dong

Description

@yulin-dong

I have recently updated ui-route from ver 0.2.15 to 0.3.1 and I noticed that accessing to custom data has been changed. With ver 0.2.15, I could use _.extend(newVar, $state.current.data) to initiate newVar using lodash. However, in ver 0.3.1, the properties of $state.current.data are in$state.current.data.__proto__. With this change, I have to do _.extend(newVar, $state.current.data.__proto__) to achieve the same result. Is this intended behavior?

Thanks,

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