10.0.2 • Published 3 years ago

@next-level-integration/b2b-message-monitor v10.0.2

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Message Monitor Component

Installation:

npm install @next-level-integration/b2b-message-monitor

Configuration

  • Add assets configuration to angular.json
{
"glob": "**/*",
"input": "./node_modules/@next-level-integration/b2b-message-monitor/assets",
"output": "./assets/"
}
  • For Translations support with ngx-translate, add the following resource to MultiHttpTranslateLoader:
    {prefix: './assets/message-monitor/i18n/', suffix: '.json'}

How to Use

In any angular template you can embed MessageMonitor component:

<b2b-message-monitor roles="<list of user roles, default value is empty list>"
                     apiUrl="<relative b2b api url, default value is 'api/'>">
</b2b-message-monitor>

Example

<b2b-message-monitor [roles]="roles" <!-- roles loaded from component TS -->
                     apiUrl="b2b/">  <!-- relative apis will start with b2b/ -->

</b2b-message-monitor>