ngx-profile-avatar
Run npm i ngx-profile-avatar
for installing.
Import and add InputModule in your app module.
import { ProfileImageModule } from 'ngx-profile-avatar';
Declare as
<app-profile-image [first_name]="variable_name" [last_name]="variable_name"></app-profile-image>
Declare as for small size
<app-profile-image [first_name]="variable_name" [last_name]="variable_name" [small]="true"></app-profile-image>