Accessing component options from handler



Using Jovo v4, how to access Component config added using ComponentDeclaration (as mentioned in here:

const app = new App({
  // ...

  components: [
    new ComponentDeclaration(GlobalComponent, {
      config: {key1: 'val1'} // <<<<<<< how to access this in handler?

  // ...

I tried this.$component.config, but is coming as undefined



If I’m reading the doc correctly: Try this.$


This is the correct way (going to update the docs), but we found a small bug that doesn’t add the config for global components. Going to fix this early next week. Thanks for flagging!


Thanks for confirming


@jan Can you please let me know if this fix was released? Thanks


Currently working on it in this PR: