Skip to main content
Glama
EditorSelectorRenderer.component.ts1.16 kB
import { CommonModule } from '@angular/common'; import { Component, Input } from '@angular/core'; import type { NodeProps } from '@intlayer/core'; import { ContentSelectorWrapperComponent } from './ContentSelectorWrapper.component'; import { EditedContentRendererComponent } from './EditedContentRenderer.component'; /** * Combine your NodeProps (which include dictionaryKey & keyPath) * with any other div-like attributes. */ export interface EditorSelectorRendererProps extends NodeProps { [key: string]: any; } @Component({ selector: 'app-editor-selector-renderer', standalone: true, imports: [ CommonModule, ContentSelectorWrapperComponent, EditedContentRendererComponent, ], template: ` <app-content-selector-wrapper [dictionaryKey]="dictionaryKey" [keyPath]="keyPath" > <app-edited-content-renderer [dictionaryKey]="dictionaryKey" [keyPath]="keyPath" > <ng-content></ng-content> </app-edited-content-renderer> </app-content-selector-wrapper> `, }) export class EditorSelectorRendererComponent { @Input() dictionaryKey!: string; @Input() keyPath!: any[]; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aymericzip/intlayer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server