Angular @ViewChild and ngIf
The Angular @ViewChild decorator can be tricky to handle if the element or component it references also has an ngIf directive. Take the example below. Currently, clicking the button will…
The Angular @ViewChild decorator can be tricky to handle if the element or component it references also has an ngIf directive. Take the example below. Currently, clicking the button will…
The Record<Keys,Type>utility type in TypeScript is a powerful dictionary like utility. Assume you want to track employees by employee id and their relevant employee details. Creating The output from console.log:…
In my trek across the Internet, I came across Jest, a powerful and simple to use testing framework for Angular. The features and benefits of Jest are detailed in a…