AppraisalAssistantChatWidget
This library was generated with Angular CLI version 15.2.0.
Peer Dependencies
Make sure you have the following minimum versions of dependencies installed.
- Angular 15.0.0 or higher
- Angular Material 15.0.0 or higher
- RxJS 7.0.0 or higher
Usage
1. Install the package using the command
npm install @propmix/appraisal-assistant-chat-widget
2. Provide the configuration in your module
import { AppraisalChatWidgetConfig } from "@propmix/appraisal-assistant-chat-widget";
providers: [
{
provide: 'appraisalAssistConfig',
useValue: {
apiUrl: 'chat backend api url',
} as AppraisalChatWidgetConfig
}
]
3. Import Chat component in your module
import { AppraisalAssistantChatWidgetComponent } from "@propmix/appraisal-assistant-chat-widget";
imports: [
AppraisalAssistantChatWidgetComponent
]
4. Use the component in your template
<appraisal-assistant-agent></appraisal-assistant-agent>
Publishing to npm repository
ng build appraisal-assistant-chat-widget
cd dist/appraisal-assistant-chat-widget
npm publish --access public
Local Development & testing
Do these steps from the library directory
ng build appraisal-assistant-chat-widget --watch
cd dist/appraisal-assistant-chat-widget/
npm link
Do these steps from the consumer application
npm ci
npm link @propmix/appraisal-assistant-chat-widget
Further help
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.