You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sfh-mohemm/Mohem/src/app/hmg-common/ui/face-avatar/face-avatar.component.ts

24 lines
519 B
TypeScript

import { Component, OnInit, Output, EventEmitter } from '@angular/core';
import { Input } from '@angular/core';
@Component({
selector: 'face-avatar',
templateUrl: './face-avatar.component.html',
styleUrls: ['./face-avatar.component.scss']
})
export class FaceAvatarComponent implements OnInit {
@Input() image: string;
@Input() height = '2.8cm';
@Output() error: EventEmitter<any> = new EventEmitter();
constructor() { }
ngOnInit() {
}
public failedToLoadImage() {
this.error.emit();
}
}