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…

TypeScript – Add/Modify/Delete RecordType

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:…