19 lines
449 B
TypeScript
19 lines
449 B
TypeScript
![]() |
import {Component} from '@angular/core';
|
||
|
import {FormsModule} from '@angular/forms';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'sae-translate-texts',
|
||
|
standalone: true,
|
||
|
imports: [FormsModule],
|
||
|
templateUrl: './translate-texts.html',
|
||
|
styleUrl: './translate-texts.css'
|
||
|
})
|
||
|
export class TranslateTexts {
|
||
|
public fromText: string = ''
|
||
|
public toText: 'fromText' | 'toText' | '' = ''
|
||
|
|
||
|
emptyText(someText: 'fromText' | 'toText') {
|
||
|
this[someText] = '';
|
||
|
}
|
||
|
}
|