I have a reactive form trainingFeedbackForm with a textarea:
<textarea pInputTextarea appWhiteSpace inputField="{{not_attended_reason}}"
    [(ngModel)]="not_attended_reason" [disabled]="attended==='yes'"
    placeholder="The reason for not attending the traning"
    (inputValue)="removeWhitespace($event)"></textarea>
I want to disable this button when either the form is valid or the textarea is empty:
<button (click)="getFeedbackFormValue()" class="btn-gradient fill-btn ripple"
    [disabled]="trainingFeedbackForm.invalid || !not_attended_reason">
    Submit feedback
</button>
The approach I am using above is not working.
How can I achieve this? Can somebody help?
 
     
     
    