12 questions for “New Control Flow Syntax (@if”

Found in 1 field. Select a question to see its full answer.

Information Technology

12 questions in 1 technology

#QuestionTechnologyTopicLevel
1How would you migrate an existing component from asterisk ngIf and asterisk ngFor to the new control flow syntax? Angular › New Control Flow Syntax (@if, @for & @switch)AngularNew Control Flow Syntax (@if, @for & @switch)Beginner
2What performance benefits does the new control flow syntax offer compared to the older structural directives? Angular › New Control Flow Syntax (@if, @for & @switch)AngularNew Control Flow Syntax (@if, @for & @switch)Advanced
3What is the new at if control flow block in Angular, and how does it compare to the older asterisk ngIf directive? Angular › New Control Flow Syntax (@if, @for & @switch)AngularNew Control Flow Syntax (@if, @for & @switch)Beginner
4How does the new at for control flow block work, and why does it require a track expression? Angular › New Control Flow Syntax (@if, @for & @switch)AngularNew Control Flow Syntax (@if, @for & @switch)Beginner
5How does the new at switch control flow block let you handle multiple possible conditions cleanly? Angular › New Control Flow Syntax (@if, @for & @switch)AngularNew Control Flow Syntax (@if, @for & @switch)Intermediate
6What is the ngFor structural directive used for, and how does the newer at for syntax compare to it? Angular › DirectivesAngularDirectivesBeginner
7How does using trackBy, or the track expression in the newer at for syntax, improve the performance of rendering lists? Angular › Performance & Lazy LoadingAngularPerformance & Lazy LoadingIntermediate
8What is a simple real world example of when content projection is useful? Angular › Content Projection (ng-content)AngularContent Projection (ng-content)Beginner
9What is a directive in Angular and what are the three main types? Angular › DirectivesAngularDirectivesBeginner
10How would you conditionally show different content in a component's template? Angular › Components & TemplatesAngularComponents & TemplatesIntermediate