Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions renderers/angular/src/v0_9/core/a2ui-renderer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
ActionListener as ActionHandler,
A2uiMessage,
A2uiClientAction as Action,
A2uiClientDataModel,
} from '@a2ui/web_core/v0_9';
import {AngularComponentImplementation, AngularCatalog} from '../catalog/types';

Expand Down Expand Up @@ -90,4 +91,11 @@ export class A2uiRendererService implements OnDestroy {
ngOnDestroy(): void {
this._messageProcessor.model.dispose();
}

/**
* Returns the aggregated data model for all surfaces that have 'sendDataModel' enabled.
*/
getClientDataModel(): A2uiClientDataModel | undefined {
return this._messageProcessor.getClientDataModel();
}
Comment on lines +98 to +100

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Please add unit tests to cover the new getClientDataModel method to adhere to the repository style guide, which states that all code changes should have tests.

References
  1. If there are code changes, code should have tests. (link)

}
Loading