Open utterances-bot opened 10 months ago
Hi anh Trung, thanks for your explanation 🫶! At first glance, I thought that the magic happened by setting the value for the $implicit
key in the template context
. However, everything is clear now; it must be the key that is the same as the directive's selector.
ngIf - Store the conditional result in a variable - Trung Vo
A seasoned front-end engineer with 9 years of passion in creating experience-driven products. I am proficient in Angular, React and TypeScript development.
https://trungk18.com/experience/ngif-as/