12 questions for “@for & @switch)”

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

Information Technology

12 questions in 1 technology

#QuestionTechnologyTopicLevel
1What 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
2How 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
3How 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
4How 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
5What 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
6What is a simple real world example of when content projection is useful? Angular › Content Projection (ng-content)AngularContent Projection (ng-content)Beginner
7What is a directive in Angular and what are the three main types? Angular › DirectivesAngularDirectivesBeginner
8What is the ngFor structural directive used for, and how does the newer at for syntax compare to it? Angular › DirectivesAngularDirectivesBeginner
9How would you conditionally show different content in a component's template? Angular › Components & TemplatesAngularComponents & TemplatesIntermediate
10How 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