Angular introduces the new @let syntax for defining reusable template variables, enhancing developer experience by providing a more ergonomic way to reuse values across a template. The syntax follows specific rules for declaration and usage within the template, ensuring scoped and read-only variables.

3m read timeFrom blog.angular.dev
Post cover image
Table of contents
Introducing @let in AngularA new way to define reusable template variablesSyntax definition@let the fun begin

Sort: