funky-framadate-front/mocks/old-stuff/ui/erasable-input/erasable-input.component.ts

23 lines
492 B
TypeScript
Raw Normal View History

import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
@Component({
2020-04-22 12:56:18 +02:00
selector: 'app-erasable-input',
2020-04-21 10:50:26 +02:00
templateUrl: './erasable-input.component.html',
styleUrls: ['./erasable-input.component.scss'],
})
export class ErasableInputComponent implements OnInit {
2020-04-21 10:50:26 +02:00
@Output() inputModelChange = new EventEmitter();
2020-04-21 10:50:26 +02:00
@Input() inputModel;
2020-04-21 10:50:26 +02:00
constructor() {}
2020-05-01 19:10:17 +02:00
ngOnInit(): void {}
2020-04-21 10:50:26 +02:00
eraseInput() {
//
this.inputModelChange.emit('');
// TODO focus on other element
}
}