19 lines
444 B
TypeScript
19 lines
444 B
TypeScript
import { Component } from '@angular/core';
|
|
import {FormsModule} from '@angular/forms';
|
|
|
|
@Component({
|
|
selector: 'lib-translate-texts',
|
|
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] = '';
|
|
}
|
|
}
|