Is it possible to display validators error message inside html template I have something like this
this.formBuilder.group({
sizeOfBuildingPart: [{ value: 0, disabled:false }, [Validators.min(0),Validators.max(100), Validators.required, Validators.pattern('[0-9]*$')]]});
In html template I need to display error message if max value is bigger then validators
Something like this
{{formControls.sizeOfBuildingPart.errors?.max}}
It is working ok, but is it possible to display what is max number value (in this case 100), tried something like this
{{formControls.sizeOfBuildingPart.errors?.max.value}}
But it does not work, thanks in advance
maxandactualproperties, so you need to reach it likeformControls.sizeOfBuildingPart.errors?.max.maxorformControls.sizeOfBuildingPart.errors?.max.actual