Name @if (isFieldValid('name')) {
This field is required.
}
@if (isFieldValid('image')) {
This field is required.
}
Type @for (type of monsterTypes; track type) { {{ type }} } HP @if (isFieldValid('hp')) { @if (formGroup.get('hp')!.hasError('required')) {
This field is required.
} @if (formGroup.get('hp')!.hasError('min')) {
This field must be bigger than 0.
} @if (formGroup.get('hp')!.hasError('max')) {
This field must be smaller or equal to 200.
} } Figure caption @if (isFieldValid('figureCaption')) {
This field is required.
} Attack name @if (isFieldValid('attackName')) {
This field is required.
} Attack strength @if (isFieldValid('attackStrength')) { @if (formGroup.get('attackStrength')!.hasError('required')) {
This field is required.
} @if (formGroup.get('attackStrength')!.hasError('min')) {
This field must be bigger than 0.
} @if (formGroup.get('attackStrength')!.hasError('max')) {
This field must be smaller or equal to 200.
} } Attack description @if (isFieldValid('attackDescription')) {
This field is required
}
@if (monsterId !== -1) {
}