devlev1980
3/20/2019 - 1:53 PM

Set validation error Reactive Forms

	get selectForPrimaryThemeOptionsError() {
		return (
			this.requestForm.get('selectForPrimaryThemeOptions').touched &&
			this.requestForm.get('selectForPrimaryThemeOptions').errors &&
			this.requestForm.get('selectForPrimaryThemeOptions').errors.required
		);
	}
			<span *ngIf="selectForPrimaryThemeOptionsError" class="validation-alert">יש להזין שם שאלון</span>