i get this error after upgrading
aurelia-framework version "aurelia-framework": "^1.3.1",
the view-model code:
import moment from 'moment'
export class ComponentX {
constructor (router) {
this.router = router
this.moment = moment
}
then in view.html:
${moment()} -- works, return date as string
${moment().toISOString()} -- does not work. no method of moment can be called, it throws error:
moment() is not a function
when i downgrade to "aurelia-framework": "1.3.0" it works again.