Hi,
There seems to be something wrong with static injection, which doesn’t work since beta 12. From beta.12 this example doesn’t show the label of custom element. Is this a bug, or I miss something?
import { customElement, bindable } from 'aurelia';
@customElement({
name:‘my-label’,
template:<template><div innerhtml.bind="label"></div></template>
,
})
export class MyLabel {
@bindable() label;
}
@customElement({
name:‘my-app’,
template:<template><my-label label.bind="label"></my-label></template>
,
})
export class MyApp {
static inject = [MyLabel];
label=‘show my label please’;
}