What is accessibility in Angular and why does it matter?
Accessibility means building an app that everyone can use, including people who use screen readers, keyboards only, or have vision or motor difficulties.
The 50 Angular questions worth preparing first, picked from all 210 on W3Teacher and spread across 42 topics. Each one has a short answer here and a full answer with examples and follow-ups on its own page.
Accessibility means building an app that everyone can use, including people who use screen readers, keyboards only, or have vision or motor difficulties.
The Angular animations module lets you define smooth transitions between different states of an element, such as fading in or sliding a panel into view.
The Angular CDK, short for Component Dev Kit, provides behavior and utilities for building custom components, such as overlays, drag and drop, and accessibility helpers, without any visual styling included at all.
The Angular CLI is a command line tool that helps you create, build, test, and manage an Angular project without setting up complicated build tools yourself. Running a single command generates a fully working starter project with a sensible folder structure already in place.
Angular DevTools is a free browser extension for Chrome and Firefox that adds new tabs to your browser's developer tools, letting you inspect your app's component tree, view current inputs and state, and profile how long change detection takes for each component.
Angular Elements let you package an Angular component as a standard web component, called a custom element, which can then be used inside any web page or framework, such as plain HTML, React, or Vue, without needing to know anything about Angular at all.
Angular Material is an official component library built by the Angular team, providing ready to use, well tested, and accessible components like buttons, dialogs, and date pickers that follow Google's Material Design guidelines.
A theme defines the colors, typography, and density used across every Angular Material component in your app.
A schematic is a template based code generator that the Angular CLI uses to create new files, such as components and services, following consistent naming and structure rules.
Cross site scripting happens when an attacker manages to inject malicious code into a page, which then runs in another user's browser, often stealing information or performing unwanted actions.
A signal is a wrapper around a value that notifies Angular exactly when that value changes, letting Angular update only the specific parts of the page that actually depend on it.
The official Angular style guide provides recommended conventions for naming files, organizing folders, and structuring components and services consistently.
Running ng build with the production configuration creates an optimized version of your app, with smaller file sizes and development warnings removed, ready to be uploaded to a real web server for actual visitors to use.
Change detection is the process Angular uses to check whether any data used in a component's template has changed, and if so, update the actual page to reflect the new values.
A component is a reusable piece of the user interface, combining a TypeScript class that holds data and logic, an HTML template that describes what appears on screen, and optionally its own CSS styles.
Content projection lets a component accept and display content passed in by whatever uses it, similar to how a picture frame can hold any picture you place inside it.
Angular supports interpolation for displaying a value in text, property binding for setting an element's property, event binding for responding to user actions, and two way binding for keeping a value and an input field in sync in both directions at once.
A provider tells Angular's dependency injection system how to create a specific value or service when something asks for it. Most commonly this is just the class itself, but a provider can also describe using a different class, a fixed value, or a factory function instead.
A directive is a class that adds behavior to an element in your template. Component directives are directives with their own template. Structural directives, like the older asterisk ngIf, change the layout by adding or removing elements.
End to end testing runs your actual app in a real browser and simulates a real user's actions, like clicking buttons and filling out forms, checking that entire flows work correctly from start to finish.
Template driven forms build the form structure mostly in the HTML template, using ngModel for two way binding and letting Angular create the form control objects behind the scenes automatically.
You inject the HttpClient service into your component or service, and call its get method with the target URL, which returns an observable that emits the response once the request completes successfully.
Internationalization, often shortened to i18n, means building an app so it can easily show text in different languages for different users around the world.
Lifecycle hooks are special methods Angular calls automatically at specific points in a component's life, such as right after it is created or right before it is destroyed, letting you run your own code exactly when needed, like fetching data or cleaning up a resource.
The at if block is a newer, built in template syntax for conditionally showing content, reading more like a regular programming language conditional than the older asterisk ngIf structural directive.
An NgModule is a class decorated with the NgModule decorator that groups together related components, directives, pipes, and services, declaring what belongs together and what that group of code depends on.
NgRx is a state management library for Angular, inspired by Redux, that keeps all of an app's shared state in one single central store.
Lazy loading means only downloading the code for a specific feature or route when the user actually navigates to it, instead of including everything in the app's initial bundle.
A pipe transforms a value directly inside your template for display purposes, without needing to write that transformation logic inside your component class. You apply a pipe using the vertical bar symbol after a value in interpolation.
A Progressive Web App is a website that behaves more like a native app, capable of working offline, being installed on a device's home screen, and loading quickly even on unreliable networks.
A route guard is a function that runs before a route is activated, deciding whether navigation should be allowed to continue, redirected elsewhere, or blocked entirely.
Client side routing lets a user navigate between different pages, called views, of a single page app without the browser actually reloading the page from the server every single time.
An observable represents a stream of values that can arrive over time, and you subscribe to it to receive those values as they happen.
Server side rendering means generating the full HTML for a page on the server before sending it to the browser, instead of sending an almost empty page and building everything with JavaScript afterward.
A service is a class dedicated to a specific piece of functionality, such as fetching data from a server or managing shared application state, kept separate from components so that logic can be reused across many different components without duplicating code.
A standalone component declares its own dependencies, like which other components or directives it uses, directly within itself using an imports array, without needing to be registered inside a separate NgModule. New Angular projects use standalone components by default.
State management refers to how an app organizes and shares data that changes over time, such as the current logged in user, items in a shopping cart, or a form's values.
A template reference variable, created with a hash symbol directly in your template, gives you a way to refer to a DOM element or a component instance from elsewhere within that same template, such as reading an input's current value when a button is clicked.
Jasmine is a testing framework that provides the actual syntax for writing tests, like describe and it blocks and expect assertions.
TypeScript adds type checking to JavaScript, catching many common mistakes, like passing the wrong kind of value to a component, before the code even runs, right inside your code editor.
Zone.js is a library that Angular has historically relied on to automatically detect when something in your application might have changed, such as after a click event, a timer, or an HTTP response, and it then triggers Angular's change detection so the screen updates to match…
The angular.json file holds the configuration for how your project is built, tested, and served, including things like which files to include in the build, environment specific settings, and build output locations.
You inject the MatDialog service into your component, and call its open method with the component you want to display inside the dialog. The dialog handles showing itself, dimming the background, and closing correctly when the user is done.
A micro frontend architecture splits a large web application into several smaller, independently developed and deployed applications, often owned by separate teams, that are then composed together into a single user experience.
The Angular CDK includes a dedicated a11y package with tools like FocusTrap, which keeps keyboard focus inside a dialog while it is open, and LiveAnnouncer, which lets you announce dynamic messages to screen reader users that would otherwise go unnoticed.
You define an animation trigger with a name, describe the styles for each state using the state function, and describe how to move between those states using the transition function, then attach the trigger to an element in your template using square brackets and the at symbol.
The CDK Drag and Drop module provides directives that let you make any element draggable and any container a valid drop zone, handling the complex logic of tracking drag position, reordering items, and moving elements between different lists, all without any visual styling…
The Profiler tab lets you record a session while interacting with your app, then shows a visual chart of exactly how long each component took during every change detection cycle, making it easy to spot which specific component is taking longer than expected to update.
You can pass data into an Angular Element using regular HTML attributes, which map to the component's inputs, and Angular Elements automatically converts these attribute values into the correct format. You can also set properties directly on the element using plain JavaScript.
You define color palettes using Material's color definition functions, choosing specific colors for your primary and accent roles, then pass these into your theme definition, which Angular Material uses to generate consistent colors across every component automatically.
Run a timed Angular mock interview: random questions, answer out loud, reveal the model answer and get a readiness score you can share.