All fields

“Components & Templates” in Information Technology

66 questions across 3 technologies.

Information Technology

66 questions in 3 technologies

#QuestionTechnologyTopicLevel
1How do standalone components change the way you organize and use components in Angular? Angular › Components & TemplatesAngularComponents & TemplatesIntermediate
2What is a component in Angular and what are its main parts? Angular › Components & TemplatesAngularComponents & TemplatesBeginner
3What is Angular's template syntax used for displaying dynamic values on the page? Angular › Components & TemplatesAngularComponents & TemplatesBeginner
4How would you conditionally show different content in a component's template? Angular › Components & TemplatesAngularComponents & TemplatesIntermediate
5How do you pass data into a component from its parent using an input property? Angular › Components & TemplatesAngularComponents & TemplatesAdvanced
6What is a standalone component in Angular, and how do you create one? Angular › Standalone ComponentsAngularStandalone ComponentsBeginner
7How do you pass data into an Angular Element from outside, such as from plain HTML or JavaScript? Angular › Angular Elements (Web Components)AngularAngular Elements (Web Components)Intermediate
8How would you organize global styles versus component specific styles in a large Next.js application? Next.js › Styling in Next.js (CSS Modules, Tailwind & Styled Components)Next.jsStyling in Next.js (CSS Modules, Tailwind & Styled Components)Intermediate
9Why 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
10What is the difference between a layout and a template in the Next.js App Router? Next.js › Layouts & TemplatesNext.jsLayouts & TemplatesBeginner
11What is the single responsibility principle and how does it apply to writing Angular components and services? Angular › Angular Style Guide & Best PracticesAngularAngular Style Guide & Best PracticesIntermediate
12How do you share state between multiple components that are not directly related, such as a shopping cart shown in both the header and a product page? Next.js › State Management in Next.js AppsNext.jsState Management in Next.js AppsIntermediate
13How does the CDK Overlay service help you build components like tooltips and dropdown menus that need to appear above everything else? Angular › Angular CDK (Component Dev Kit)AngularAngular CDK (Component Dev Kit)Advanced
14How do signal inputs work in modern Angular components, and how are they different from the traditional Input decorator? Angular › Angular SignalsAngularAngular SignalsAdvanced
15If a project is migrating from the Pages Router to the App Router, what happens to the custom App and Document components? Next.js › Custom App & Document in Pages RouterNext.jsCustom App & Document in Pages RouterIntermediate
16What are the coroutine machinery components (promise_type, awaitable, coroutine_handle)? C++ › CoroutinesC++CoroutinesAdvanced
17What is accessibility in Angular and why does it matter? Angular › Accessibility (a11y) in AngularAngularAccessibility (a11y) in AngularBeginner
18What is the Angular animations module and how do you enable it in a project? Angular › Angular AnimationsAngularAngular AnimationsBeginner
19How would you animate a button so it grows slightly when a user hovers over it? Angular › Angular AnimationsAngularAngular AnimationsBeginner
20What is Angular DevTools and how do you install it? Angular › Angular DevTools & DebuggingAngularAngular DevTools & DebuggingBeginner
21How do you add a Material dialog to an Angular app? Angular › Angular Material & UI Component LibrariesAngularAngular Material & UI Component LibrariesBeginner
22What is cross site scripting, often called XSS, and how does Angular protect against it by default? Angular › Angular Security (XSS, Sanitization & CSP)AngularAngular Security (XSS, Sanitization & CSP)Beginner
23What is the official Angular style guide, and why is it useful for a team? Angular › Angular Style Guide & Best PracticesAngularAngular Style Guide & Best PracticesBeginner
24What is content projection in Angular and what does ng-content do? Angular › Content Projection (ng-content)AngularContent Projection (ng-content)Beginner
25What is a simple real world example of when content projection is useful? Angular › Content Projection (ng-content)AngularContent Projection (ng-content)Beginner
26What are the main types of data binding in Angular? Angular › Data BindingAngularData BindingBeginner
27How does event binding work in Angular, letting a component respond to a user action? Angular › Data BindingAngularData BindingBeginner
28What is a directive in Angular and what are the three main types? Angular › DirectivesAngularDirectivesBeginner
29How do you prevent a form from reloading the page when it is submitted in Angular? Angular › FormsAngularFormsBeginner
30What is internationalization in Angular, and what built in tool does the framework provide for it? Angular › Internationalization (i18n) in AngularAngularInternationalization (i18n) in AngularBeginner
31What are lifecycle hooks in Angular and why would you use them? Angular › Lifecycle HooksAngularLifecycle HooksBeginner
32What 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
33What is an NgModule in Angular, and what was its traditional purpose? Angular › NgModules & Modular ArchitectureAngularNgModules & Modular ArchitectureBeginner
34What is a pipe in Angular and how do you use one in a template? Angular › Pipes (Built-in & Custom)AngularPipes (Built-in & Custom)Beginner
35How do you create a clickable link to navigate between pages using Angular's router? Angular › RoutingAngularRoutingBeginner
36What is a service in Angular and why are services used to hold shared logic? Angular › Services & Dependency InjectionAngularServices & Dependency InjectionBeginner
37What is a common sign that an Angular app's state management approach needs to be reconsidered? Angular › State ManagementAngularState ManagementBeginner
38What is a template reference variable in Angular, and how do you use one? Angular › Template Reference Variables & ViewChildAngularTemplate Reference Variables & ViewChildBeginner
39What is the difference between a unit test and a component test in an Angular app? Angular › Testing with Jasmine & KarmaAngularTesting with Jasmine & KarmaBeginner
40Why does Angular use TypeScript instead of plain JavaScript, and what benefit does it provide? Angular › TypeScript with AngularAngularTypeScript with AngularBeginner
41What is the purpose of the custom App component in the Pages Router? Next.js › Custom App & Document in Pages RouterNext.jsCustom App & Document in Pages RouterBeginner
42How do you add ARIA attributes to a custom Angular component to make it accessible? Angular › Accessibility (a11y) in AngularAngularAccessibility (a11y) in AngularIntermediate
43How do you define a simple fade in animation using the trigger and transition functions in Angular? Angular › Angular AnimationsAngularAngular AnimationsIntermediate
44How would you generate a new component, service, or module using Angular CLI commands? Angular › Angular CLI & Project StructureAngularAngular CLI & Project StructureIntermediate
45How 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
46How does two way binding using the banana in a box syntax, square brackets and parentheses together, actually work behind the scenes? Angular › Data BindingAngularData BindingIntermediate
47How does attribute binding differ from property binding, and when do you actually need to use it? Angular › Data BindingAngularData BindingIntermediate
48How does the HostListener decorator let a directive respond to events on its host element? Angular › DirectivesAngularDirectivesIntermediate
49How do you format dates, numbers, and currency correctly for different locales in an Angular app? Angular › Internationalization (i18n) in AngularAngularInternationalization (i18n) in AngularIntermediate
50How 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
51How do you select a specific piece of state from the NgRx store and use it in a component? Angular › NgRx State ManagementAngularNgRx State ManagementIntermediate
52How would you create a custom pipe in Angular, such as one that truncates long text? Angular › Pipes (Built-in & Custom)AngularPipes (Built-in & Custom)Intermediate
53What is a resolver in Angular routing, and what problem does it solve? Angular › Router Guards & ResolversAngularRouter Guards & ResolversIntermediate
54How do you read a dynamic value from the URL, such as a product id, in an Angular route? Angular › RoutingAngularRoutingIntermediate
55What does the ViewChild decorator do, and how would you use it to access a child component from a parent's TypeScript code? Angular › Template Reference Variables & ViewChildAngularTemplate Reference Variables & ViewChildIntermediate
56How would you test that clicking a button in a component triggers the expected behavior? Angular › Testing with Jasmine & KarmaAngularTesting with Jasmine & KarmaIntermediate
57Why can you not use React hooks like useState inside the custom Document component? Next.js › Custom App & Document in Pages RouterNext.jsCustom App & Document in Pages RouterIntermediate
58How does the global-error.js file differ from a regular error.js file in the App Router? Next.js › Error Handling & Not Found PagesNext.jsError Handling & Not Found PagesIntermediate
59How do route transition animations work in Angular, allowing pages to animate as a user navigates? Angular › Angular AnimationsAngularAngular AnimationsAdvanced
60How do you create a custom form field control that integrates properly with Angular Material's form field wrapper? Angular › Angular Material & UI Component LibrariesAngularAngular Material & UI Component LibrariesAdvanced
61How would you create a custom two way binding for your own component's custom property? Angular › Data BindingAngularData BindingAdvanced
62How would you build a custom structural directive similar to ngIf from scratch? Angular › DirectivesAngularDirectivesAdvanced
63How would you use Angular's built in deferred loading, the at defer block, to improve performance further? Angular › Performance & Lazy LoadingAngularPerformance & Lazy LoadingAdvanced
64How would you implement nested, or child, routes in Angular for a layout with a shared parent section? Angular › RoutingAngularRoutingAdvanced
65How would you create a reusable, generic Angular component using TypeScript, such as a list component that works with any data type? Angular › TypeScript with AngularAngularTypeScript with AngularAdvanced
66How would you combine parallel routes and intercepting routes together to build a modal that overlays the current page? Next.js › Parallel Routes & Intercepting RoutesNext.jsParallel Routes & Intercepting RoutesAdvanced