My 'get' methods are not firing, and I do not know why

I’m migrating a project from Aurelia 1 to Aurelia 2, and I’m unable to replicate the capabilities of the @computedFrom(‘xxxx’) decorator.

The code I’m trying to replicate looks like this:

 @observable Type_RTK: string;

 @computedFrom("Type_RTK")
 get TypeAbbreviation(): string
 {
       let rtk = GetLoadTypeRtkInfo(this.Type_RTK);
       if (rtk)
             return rtk.abbreviation.toUpperCase();
       return "";
  }

I’ve tried solutions with @computed, @watch, @bindable, and no decorator but never am able to have the get method fire.

Here are some examples that fail to fire when the observable property this.Type_RTK is changed. I’ve moved the code that sets this.Type_RTK from bound() to attached() as well with no luck.

    get TypeAbbreviation(): string
    {
           let rtk = GetLoadTypeRtkInfo(this.Type_RTK);
           if (rtk)
                 return rtk.abbreviation.toUpperCase();
           return "";
    }
    @bindable({ mode: BindingMode.default }) get TypeAbbreviation(): string {
        debugger;
        const rtk = ShippingDtos.ShipmentTypeRTKs.GetLoadTypeRtkInfo(this.Type_RTK);
        return rtk ? rtk.abbreviation.toUpperCase() : '';
    }

I could really use some guidance here, I’ve spent about a day trying to figure this out. Thanks.

Its just a getter, when accessing this getter grom attached hook, what do you get? Its weird you are not getting anything at all.

I’m just explicitly setting the value of the observable in the attached method, I’ve also tried this in the bound method with no luck.

attached()
{     
      this.Type_RTK = this.loadDetail?.Shipment_Type_RTK;
}

bound()
{     
      this.Type_RTK = this.loadDetail?.Shipment_Type_RTK;
}

get TypeAbbreviation(): string
{
       debugger;
       let rtk = GetLoadTypeRtkInfo(this.Type_RTK);
       if (rtk)
             return rtk.abbreviation.toUpperCase();
       return "";
}

I thinking what might be throwing me is that the debugger isn’t getting hit, but I seem to remember that in getters they don’t always get called.

All is well - issue was there was a syntax error elsewhere in the page preventing updates to the code from taking effect.

Thanks for looking into it.