Did I miss something?
I am rebuilding an app in V2, trying to use the @observable decorator. My IDE and the build command are telling me aurelia has no exported member ‘observable’
using : 2.0.0-alpha.24
Did I miss something?
I am rebuilding an app in V2, trying to use the @observable decorator. My IDE and the build command are telling me aurelia has no exported member ‘observable’
using : 2.0.0-alpha.24
I think you need to import that from @aurelia/runtime-html
.
thanks @Sayan751, that worked.
aurelia docs need to be updated to reflect this.
In the future releases of Aurelia2 the observable
decorator can be imported from the aurelia
package itself. The PR is merged; you can start using it if you switch to the dev
tag/version of the aurelia
package.