DEV Community

Nhan Nguyen
Nhan Nguyen

Posted on

1

Angular - Local variables and the new block syntax

Image description

In this example, we store the data we get from a subscription in the user variable:

Image description

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:

Image description

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:

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up