Skip to content

Computed properties no dependencies #107

Closed
@kenjiqq

Description

@kenjiqq

I think computed properties should support that you define a function that takes no arguments. So that it could be used to add a static value to all instances of that resource.

    DS.defineResource({
        name: 'user',
        computed: {
            someProp: [function () {
                return propValue;
            },
        }
    });

You could use the shorthand without the array, but then you get a warning that you should use the array method

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