I've been checking out the form validation fundamentals at the official docs and I can't wrap my head around with one of the examples.
Some background:
In this sample, the forbidden name is "bob", so the validator will reject any hero name containing "bob". Elsewhere it could reject "alice" or any name that the configuring regular expression matches.
And here is the input element:
<input id="name" name="name" class="form-control"
required minlength="4" forbiddenName="bob"
[(ngModel)]="hero.name" #name="ngModel" >
Yet, the input from their example seems to be not validated:
while the input using reactive forms from the same example gets validated as expected:
How do I make template-driven form display the alert as seen in reactive form?
Here is the example from the official docs: https://stackblitz.com/angular/byyynkdrode
Thanks in advance!

