import { Component, Input, ChangeDetectionStrategy } from '@angular/core'; import {…
- User
import { Component, Input, ChangeDetectionStrategy } from '@angular/core'; import { SafeUrl } from '@angular/platform-browser';
@Component({ selector: 'app-avatar', templateUrl: './avatar.component.html', styleUrls: ['./avatar.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, }) export class AvatarComponent {
@Input() imgSrc: SafeUrl = ''; @Input() words = '';
constructor() { }
public get letters(): string[] { return this.words.split(' ').map(word => wod.trim()[0]); }
}
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.