Angular Dart from the Beginning: 12 ngSwitch

preview_player
Показать описание
The [ngSwitch] uses the switch/case functions in the elements. It draws from data in the class. The *ngSwitchCase has the asterisk, and when a match with [ngSwitch] is made, the element is created.
Рекомендации по теме
Комментарии
Автор

Wouldn't it better to bind the text to a property which does the switch case in the AppComponent and thus, only have one input button instead of copy/paste n times the element ? Or is it just an exemple to demonstrate how to use the ngSwitch ? Thanks for your awesome videos.

Nkfr