AUR0707
Template compilation error: creating binding to non-bindable property yyyy on zzzz.
Last updated
Was this helpful?
Was this helpful?
// my-attribute.ts
import { bindable } from 'aurelia';
export class MyAttributeCustomAttribute {
@bindable propA: string;
// propB is missing @bindable
propB: string;
}<!-- usage.html -->
<import from="./my-attribute"></import>
<!-- Error: propB is not bindable on MyAttributeCustomAttribute -->
<div my-attribute="propA.bind: valueA; propB: valueB"></div>// my-attribute.ts
import { bindable } from 'aurelia';
export class MyAttributeCustomAttribute {
@bindable propA: string;
@bindable propB: string; // Added @bindable
}<!-- usage.html -->
<import from="./my-attribute"></import>
<!-- Correct: Both propA and propB are bindable -->
<div my-attribute="propA.bind: valueA; propB: valueB"></div>