angular-reactive-forms-course icon indicating copy to clipboard operation
angular-reactive-forms-course copied to clipboard

Section5/wizard

Open squirrelsRduck opened this issue 5 years ago • 1 comments

Line 43 of libs/section5/src/lib/wizard/wizard.component.ts assumes this.control is defined. it is defined in the above subscription, which i believe is executed asynchronously on the microtask queue. please refer to this workaround i used when working through this part of the course:

https://github.com/squirrelsRduck/angular-reactive-forms-course/commit/2bb2425e163253e6d1d52518f2ca7b8c4936a976?diff=split

if the code is indeed correct as was, please explain to me where my logic was off, thanks.

squirrelsRduck avatar Dec 30 '19 14:12 squirrelsRduck

also, just a side note, but i seemed to have to add in those delay(0) 's in some places to get around a "ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked" errors. dunno if that's expected but i didnt notice that error in the video. if there's a known fix other than the delay(0) patch, please let me know

squirrelsRduck avatar Dec 30 '19 14:12 squirrelsRduck