A Beginner-Friendly Guide On How to Use Angular's New Control Flow Syntax
2024-2-17 09:15:42 Author: hackernoon.com(查看原文) 阅读量:15 收藏

Hackernoon logo

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

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


@briantreese

Brian Treese


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


Receive Stories from @briantreese

react to story with heart

RELATED STORIES

Article Thumbnail

Article Thumbnail

Article Thumbnail

Article Thumbnail

Article Thumbnail

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


文章来源: https://hackernoon.com/a-beginner-friendly-guide-on-how-to-use-angulars-new-control-flow-syntax?source=rss
如有侵权请联系:admin#unsafe.sh