'"ng-intercom" does not trigger with custom widget and no errors in console

I'm facing the same issue with

  • ng-intercom: v8.0.2
  • Angular v12.1

Code inside Component ngOnInit()

      this.intercom.boot({
      app_id: "alphanumeric_code",
      custom_launcher_selector: "#btnSelector",
        widget: {
            "activator": "#intercom"
        },
      hide_default_launcher: false
    });

When the default launcher is true, the intercom appears at the default place. And when it is made false, the custom widget does not trigger.

Partial snapshot of DOM tree with ng-intercom-iframe

App Module

 IntercomModule.forRoot({
  appId: "alphanumeric_code", 
  updateOnRouterChange: true 
})


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source