This is my input field
<input
(keyup.enter)="save()"
(focusout)="save()"
class="editinput custom_story_input"
type="text"
placeholder="Create a new one"
id="tbtfeild"
value="" [(ngModel)]="childTaskmodel.childtitle"
#childtitle="ngModel"
name="childtitle" />
From the above input field, I don't have any problem with enter if the field is empty it shows the error message
Coming to focus out it should only work if there is any data present in the input field how can i do this..?
i want something like this:
<input *ngIf (focusout)="childtitle.val != '' ? save() : '' " >