getCapabilityOptions : how does it work?

I tested with defining options in app.json:

      "capabilitiesOptions": {
        "meter_power": {
          "units": {
            "en": "μfoo"
          }
        }
      }

And when calling console.log(this.getCapabilityOptions('meter_power')), I get what was defined:

{ units: { en: 'μfoo' } }
1 Like