These are chat archives for canjs/canjs

1st
Sep 2016
Christopher Oliphant
@RALifeCoach
Sep 01 2016 16:57
Is it possible to create a viewModel as a class?
export default class XxxViewModel extends DefineMap {
    ??

    onButtonClick() {
        …
    }
}
Matthew Phillips
@matthewp
Sep 01 2016 18:46
Probably not yet
Maybe if you call the static .setup() method
Christopher Oliphant
@RALifeCoach
Sep 01 2016 23:52
It seems to work if I define the properties and methods in the constructor.