Angular Common Types - AIIntegration
A class that activates AI services in DevExpress UI components.
import { AIIntegration } from "devextreme/common/ai-integration"
This object's constructor accepts two parameters:
- AIProvider object (required) - specifies AI service settings.
- AIIntegrationOptions object (optional) - specifies additional properties.
Pass the created AIIntegration object to components where you want to activate AI capabilities.
app.component.ts
app.component.html
- import { AIIntegration } from 'devextreme-angular/common/ai-integration';
- // ...
- export class AppComponent {
- aiIntegration = new AIIntegration(provider);
- }
- <dx-html-editor [aiIntegration]="aiIntegration"></dx-html-editor>