Skip to content

Commit

Permalink
Update ai-chat.component.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
artisticlight authored Jul 30, 2024
1 parent fa17187 commit 989cbf4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/app/components/ai-chat/ai-chat.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ import {MatDialog, MatDialogModule} from '@angular/material/dialog';
* @title Dialog with header, scrollable content and actions
*/
@Component({
selector: 'dialog-content-example',
templateUrl: 'dialog-content-example.html',
selector: 'ai-chat',
templateUrl: 'ai-chat.html',
standalone: true,
imports: [MatButtonModule, MatDialogModule],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class DialogContentExample {
export class AiChat {
readonly dialog = inject(MatDialog);

openDialog() {
const dialogRef = this.dialog.open(DialogContentExampleDialog);
const dialogRef = this.dialog.open(AiChatDialog);

dialogRef.afterClosed().subscribe(result => {
console.log(`Dialog result: ${result}`);
Expand All @@ -25,11 +25,11 @@ export class DialogContentExample {
}

@Component({
selector: 'dialog-content-example-dialog',
templateUrl: 'dialog-content-example-dialog.html',
selector: 'AiChatDialog',
templateUrl: 'AiChatDialog.html',
standalone: true,
imports: [MatDialogModule, MatButtonModule],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class DialogContentExampleDialog {}
export class AiChatDialog {}

0 comments on commit 989cbf4

Please sign in to comment.