paint-brush
A Beginner-Friendly Guide On How to Use Angular's New Control Flow Syntaxby@briantreese
210 reads

A Beginner-Friendly Guide On How to Use Angular's New Control Flow Syntax

by Brian Treese12mFebruary 17th, 2024
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

So, for those of us that are used to building things in Angular, we’re used to the structural directive *ngIf, and the concept of using an ng-template for the else condition when needed. Well, we don’t need this anymore with the new Control Flow syntax. Also, we no longer need to import the CommonModule to use them. Let’s take a look at an example.

People Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - A Beginner-Friendly Guide On How to Use Angular's New Control Flow Syntax
Brian Treese HackerNoon profile picture
Brian Treese

Brian Treese

@briantreese

Hello I'm the Chief of UX at SoCreate. I build things for the web daily & write about the stuff I use/discover/encounter

L O A D I N G
. . . comments & more!

About Author

Brian Treese HackerNoon profile picture
Brian Treese@briantreese
Hello I'm the Chief of UX at SoCreate. I build things for the web daily & write about the stuff I use/discover/encounter

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Joyk
Thetechstreetnow