All fields

“Content Projection (ng-content)” in Information Technology

11 questions across 1 technology.

Information Technology

11 questions in 1 technology

#QuestionTechnologyTopicLevel
1What is content projection in Angular and what does ng-content do? Angular › Content Projection (ng-content)AngularContent Projection (ng-content)Beginner
2What is a simple real world example of when content projection is useful? Angular › Content Projection (ng-content)AngularContent Projection (ng-content)Beginner
3How does ng-template work together with content projection to allow more flexible, conditional content? Angular › Content Projection (ng-content)AngularContent Projection (ng-content)Advanced
4How would you use multiple ng-content slots to project content into different specific locations within a component? Angular › Content Projection (ng-content)AngularContent Projection (ng-content)Intermediate
5How would you check whether any content was actually projected into a component using ng-content? Angular › Content Projection (ng-content)AngularContent Projection (ng-content)Intermediate
6What is the difference between ViewChild and ContentChild in Angular? Angular › Template Reference Variables & ViewChildAngularTemplate Reference Variables & ViewChildBeginner
7Why does the Angular style guide recommend keeping components small and focused rather than very large? Angular › Angular Style Guide & Best PracticesAngularAngular Style Guide & Best PracticesBeginner
8What is a component in Angular and what are its main parts? Angular › Components & TemplatesAngularComponents & TemplatesBeginner
9How would you animate a list where items can be added or removed, such as a shopping cart? Angular › Angular AnimationsAngularAngular AnimationsIntermediate
10What is the correct order in which Angular calls the main lifecycle hooks during a component's life? Angular › Lifecycle HooksAngularLifecycle HooksAdvanced
11How would you use ViewChildren to get references to multiple instances of the same child component or element? Angular › Template Reference Variables & ViewChildAngularTemplate Reference Variables & ViewChildAdvanced