βThe Angular v18 has been released πππ.
Check out the official announcement for in-depth updates.
Some highlights of this new version are here:
β Control flow syntax is now stable, and useful warnings are included when the track option is not used correctly.
β Defer block is also stable for lazy-loading Angular templates any way we want.
β Zoneless change detection to unlock the full benefits of signal-based components.
β Fallback content for content projection with ng-content. Here is how to use it to make the default content βHiβ in this example if the select query doesnβt return anything:
<ng-content select=".greeting">Default</ng-content>
β New events Observable available on form controls, which returns any event going on in that control, including the different form state properties (valid, pristine, etc.)
β etc
I hope you found it helpful. Thanks for reading. π
Let's get connected! You can find me on:
- Medium: https://medium.com/@nhannguyendevjs/
- Dev: https://dev.to/nhannguyendevjs/
- Hashnode: https://nhannguyen.hashnode.dev/
- Linkedin: https://www.linkedin.com/in/nhannguyendevjs/
- X (formerly Twitter): https://twitter.com/nhannguyendevjs/
- Buy Me a Coffee: https://www.buymeacoffee.com/nhannguyendevjs