@bindable name redirect

Is it possible, to have an “@bindable” property with a different input binding name?

export class MyComopnent
{
      // not working pseudo code
      @bindable('other-name')
      myProp: string;
}

<my-component other-name="asdf"></my-component>

Thanks in advance for any feedback.

1 Like

Yes, the usage is:

export class MyComopnent
{
      @bindable({ attribute: 'other-name' })
      myProp: string;
}
3 Likes

Great, thanks a lot!

1 Like