Sam
banner
neweraofcoding.bsky.social
Sam
@neweraofcoding.bsky.social
I make web applications that get more traffic from Google because they are SEO-friendly.
For more info, check out my work here: https://code-for-next-generation.vercel.app/
November 5, 2025 at 7:09 PM
Curly braces {} are not allowed and will cause a syntax error.

Each @case or @default directly precedes the content to render.

The @switch syntax replaces the older ngSwitch structural directive approach.

⚡ Key point: In Angular 18 template syntax, @case and @default do not use braces.
October 19, 2025 at 8:03 AM
Nice!
October 7, 2025 at 7:59 AM
Angular v19.2 is all about developer ergonomics: bringing modern JavaScript syntax directly to your component templates.

Faster development, cleaner code, and fewer unexpected event side effects. Go check your configs and enjoy the upgrades!

#webdev #TypeScript #Frontend #Angular #AngularDev
October 6, 2025 at 9:24 PM
The template syntax continues to align with native TypeScript/JavaScript!

Angular v19.2 now supports the in operator for checking if a property exists on an object, which is fantastic for permission checks and feature toggles.
This makes conditional rendering logic much more concise and idiomatic
October 6, 2025 at 9:24 PM
Now, you can use the void operator to explicitly ignore the return value of a function call in an event handler.

This is vital because returning false from a handler (the old default) often prevents native browser behavior. Use void for clarity!
October 6, 2025 at 9:24 PM
Perfect for internationalization (i18n) libraries like ngx-translate or custom tag functions!

How many times have you clicked a button that calls a function, and then Angular throws an error because the function returns a value?
October 6, 2025 at 9:24 PM
Time to clean up those templates!
Say goodbye to messy string concatenation in your templates! You can now use Template Strings ( ) in expressions.

But here’s the killer feature: Tagged Template Literals are now supported too!

<p>{{ translate`app.title` }}</p>
October 6, 2025 at 9:24 PM
Prefer union types for string-based states (like status, roles, themes). Use enums when you need numeric values or reverse lookups.
September 4, 2025 at 7:40 PM