In this example, we store the data we get from a subscription in the user variable:
You might want to use the new control flow syntax of Angular 17. It is possible to use local variables as well using the following syntax:
The only difference is the ; in the middle of the expression.
I hope you found it useful. 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/
Top comments (0)