Skip to content

es6 class compatibility #247

Open
Open
@ianwremmel

Description

ampersand-state has been immensely useful for backing my models in a consistent fashion, but I'm finding more and more that es6 classes would solve a category of problems that ampersand-state does not.

I'd like to do some work on making es6 classes and ampersand play nicely together, but before I begin, I'm curious what (if any) prior work has been done on this and if the maintainers have any thoughts on the best way to go about it.

A naive solution may be to simply reimplement ampersand-state as a class (possibly relying on decorators for defining prop/session/computed), but that'll force end users into a precompiler step. Can anyone share solutions that have already been considered?

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