Boa noite,
Depois de adicionar um novo ap-vmessage no formulário, recebi o seguinte erro no console:
SignUpComponent.html:51 ERROR TypeError: Cannot read property 'get' of undefined at Object.eval [as updateDirectives] (SignUpComponent.html:56) at Object.debugUpdateDirectives [as updateDirectives] (core.js:11054) at checkAndUpdateView (core.js:10451) at callViewAction (core.js:10692) at execComponentViewsAction (core.js:10634) at checkAndUpdateView (core.js:10457) at callViewAction (core.js:10692) at execEmbeddedViewsAction (core.js:10655) at checkAndUpdateView (core.js:10452) at callViewAction (core.js:10692)
Este é o trecho do código:
<ap-vmessage
text="Username alredy taken"
*ngIf="singupForm.get('userName').errors?.userNameTaken">
</ap-vmessage>
<small
*ngIf="signupForm.get('userName').valid"
class="text-sucess">User available
</small>
[...]
<button
[disabled]="signupForm.invalid || signupForm.pending"
class="btn btn-primary btn-block">Register
</button>