Master technical and career interviews with structured answers—short definition, real examples, pitfalls, and how to answer in 60–90 seconds.
Short answer: Angular Universal is a technology that enables Server-Side Rendering (SSR) of Angular applications. Instead of rendering the app purely in the browser (client-side), the initial HTML is rendered on the serv…
Short answer: Change detection is the mechanism Angular uses to update the DOM when the application's state changes. When data-bound properties change, Angular runs a change detection cycle to check if the view needs upd…
Short answer: Feature Template-Driven Forms Reactive Forms Approach Declarative, based on directives in template Programmatic, model-driven in TypeScript Form Setup Mostly in HTML template Mostly in TypeScript code Valid…
Short answer: Angular Ivy is the Angular next-generation rendering engine and compiler introduced officially in Angular 9. Explain a bit more It improves: Bundle size: Smaller generated code via better tree shaking and c…
Short answer: ngular applications. Instead of rendering the app purely in the browser (client-side), the initial HTML is rendered on the server and sent to the client. Improves SEO because search engines get fully render…
Short answer: wait TestBed.configureTestingModule({ declarations: [MyComponent] }).compileComponents(); fixture = TestBed.createComponent(MyComponent); component = fixture.componentInstance; fixture.detectChanges(); });…
Short answer: The Angular CLI (Command Line Interface) is a tool to generate, build, test, and maintain Angular apps efficiently. It automates repetitive tasks and enforces best practices. You can create a new Angular ap…
Short answer: An Angular Module (NgModule) is a container to group related components, directives, pipes, and services. It organizes an Angular app into cohesive blocks of functionality. Helps with code organization, com…
Short answer: pplication's state changes. When data-bound properties change, Angular runs a change detection cycle to check if the view needs updating. It checks component data and updates the UI accordingly. Happens aut…
Short answer: pproach Declarative, based on directives in template Programmatic, model-driven in TypeScript Form Setup Mostly in HTML template Mostly in TypeScript code Validation Simple, template-based More powerful, re…
Short answer: Angular is a TypeScript-based open-source front-end web application framework developed by Google for building single-page applications (SPAs). Explain a bit more Key Differences: Feature AngularJS (v1.x) A…
Short answer: ng serve builds and launches a development server that hosts your app locally. It watches for file changes and automatically reloads the app (live-reload). Useful during development for rapid testing. ng se…
Short answer: SSR means rendering the app’s HTML on the server before sending it to the client. With Angular Universal, the app runs on Node.js server rendering Angular components into HTML. The client then takes over vi…
Short answer: ngular? ng serve builds and launches a development server that hosts your app locally. It watches for file changes and automatically reloads the app (live-reload). Useful during development for rapid testin…
Short answer: @NgModule is a decorator that defines a module. It declares which components, directives, and pipes belong to the module. It imports other modules needed for its components. It exports components/modules to…
Short answer: Change Detection Strategy Description When to Use Default Angular checks every component in the component tree every cycle Simple apps or components with frequent changes OnPush Angular checks component onl…
Short answer: The Angular compiler converts Angular templates and TypeScript code into efficient JavaScript code. There are two modes: JIT (Just-in-Time): Compilation happens in the browser at runtime. AOT (Ahead-of-Time…
Short answer: TestBed is the primary API to configure and initialize the environment for unit testing Angular components and services. It allows you to declare components, provide services, import modules, and compile te…
Short answer: trackBy is a function used with *ngFor to tell Angular how to track list items uniquely. Why it matters: Without trackBy, Angular recreates DOM elements on each update, causing performance overhead. ✅ Examp…
Short answer: Lazy loading loads feature modules only when needed (e.g., when a user navigates to a route). Benefits: Reduces initial bundle size → faster app startup. Improves performance and user experience. Enables be…
Short answer: JWT is a compact, URL-safe token format that securely transmits information between parties. Contains a payload with user info and claims, digitally signed. Angular apps use JWT to: Store authentication sta…
Short answer: Comman Purpose ng serve Builds app in memory, runs a dev server, watches files, reloads on changes (for development) ng build Builds app to disk, generates production or development-ready output files Real-…
Short answer: CommonModule provides common directives like *ngIf, *ngFor, ngClass, etc. You import it in feature modules or any module other than the root module. Don’t import BrowserModule in feature modules; instead, i…
Short answer: ngular reuses existing DOM elements instead of recreating them. Real-world example (ShopNest) ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for p…
Short answer: Definition: A Burndown Chart is a visual tool that shows the remaining work in a Sprint or project over time. Purpose: Helps teams monitor progress toward completing the Sprint backlog. Enables early identi…
Angular Angular Tutorial · Angular
Short answer: Angular Universal is a technology that enables Server-Side Rendering (SSR) of Angular applications. Instead of rendering the app purely in the browser (client-side), the initial HTML is rendered on the server and sent to the client. Improves SEO because search engines get fully rendered HTML content immediately, which they can index better. Also improves perceived performance and faster first paint.
ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for product edit.
Angular Angular Tutorial · Angular
Short answer: Change detection is the mechanism Angular uses to update the DOM when the application's state changes. When data-bound properties change, Angular runs a change detection cycle to check if the view needs updating. It checks component data and updates the UI accordingly. Happens automatically after events, HTTP requests, timers, etc.
ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for product edit.
Angular Angular Tutorial · Angular
Short answer: Feature Template-Driven Forms Reactive Forms Approach Declarative, based on directives in template Programmatic, model-driven in TypeScript Form Setup Mostly in HTML template Mostly in TypeScript code Validation Simple, template-based More powerful, reactive & scalable Form Control Implicitly created by Angular Explicitly created and managed Scalability Suitable for simple forms Best for complex forms Change…
Detection Asynchronous Synchronous Testing Harder to test Easier to unit test
ShopNest’s ProductListComponent binds *ngFor to products and uses (click) to add to cart.
Angular Angular Tutorial · Angular
Short answer: Angular Ivy is the Angular next-generation rendering engine and compiler introduced officially in Angular 9.
It improves: Bundle size: Smaller generated code via better tree shaking and code generation. Build times: Faster incremental builds. Runtime performance: Faster rendering and change detection. Better debugging: More readable generated code and better error messages. Ivy enables partial compilation and supports new features like locality principle (compile only used components).
ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for product edit.
Angular Angular Tutorial · Angular
Short answer: ngular applications. Instead of rendering the app purely in the browser (client-side), the initial HTML is rendered on the server and sent to the client. Improves SEO because search engines get fully rendered HTML content immediately, which they can index better. Also improves perceived performance and faster first paint. Real-world example… (ShopNest)…… ShopNest admin can be built in Angular with…
modules/components, services for API calls, and reactive forms for product edit.
Angular Angular Tutorial · Angular
Short answer: wait TestBed.configureTestingModule({ declarations: [MyComponent] }).compileComponents(); fixture = TestBed.createComponent(MyComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create component', () => { expect(component).toBeTruthy(); }); wait TestBed.configureTestingModule({ declarations:… [MyComponent]…… }).compileComponents(); fixture =…
TestBed.createComponent(MyComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create component', () => { expect(component).toBeTruthy(); }); wait TestBed.configureTestingModule({ declarations: [MyComponent] }).compileComponents(); fixture = TestBed.createComponent(MyComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create component', () => { expect(component).toBeTruthy(); }); wait TestBed.configureTestingModule({ declarations:… [MyComponent] }).compileComponents(); fixture = TestBed.createComponent(MyComponent); component = fixture.componentInstance; fixture.detectChanges();…
ShopNest’s ProductListComponent binds *ngFor to products and uses (click) to add to cart.
Angular Angular Tutorial · Angular
Short answer: The Angular CLI (Command Line Interface) is a tool to generate, build, test, and maintain Angular apps efficiently. It automates repetitive tasks and enforces best practices. You can create a new Angular app with: ng new my-angular-app This command scaffolds a complete Angular project with all necessary files and configurations.
ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for product edit.
Angular Angular Tutorial · Angular
Short answer: An Angular Module (NgModule) is a container to group related components, directives, pipes, and services. It organizes an Angular app into cohesive blocks of functionality. Helps with code organization, compilation, dependency injection, and lazy loading. Every Angular app has at least one root module (AppModule).
ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for product edit.
Angular Angular Tutorial · Angular
Short answer: pplication's state changes. When data-bound properties change, Angular runs a change detection cycle to check if the view needs updating. It checks component data and updates the UI accordingly. Happens automatically after events, HTTP requests, timers, etc.
ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for product edit.
Angular Angular Tutorial · Angular
Short answer: pproach Declarative, based on directives in template Programmatic, model-driven in TypeScript Form Setup Mostly in HTML template Mostly in TypeScript code Validation Simple, template-based More powerful, reactive & scalable Form Control Implicitly created by Angular Explicitly created and managed Scalability Suitable for simple forms Best for… complex…… forms… Change Detection synchronous Synchronous Testing Harder…
ShopNest’s ProductListComponent binds *ngFor to products and uses (click) to add to cart.
Angular Angular Tutorial · Angular
Short answer: Angular is a TypeScript-based open-source front-end web application framework developed by Google for building single-page applications (SPAs).
Key Differences: Feature AngularJS (v1.x) Angular (2+) Language JavaScript TypeScript Architecture MVC (Model-View-Controller) Component-based Mobile Support No Yes Performance Slower due to two-way binding Faster with unidirectional data flow Dependency Injection Limited Robust and built-in Real-Time
AngularJS was used in legacy projects (e.g., dashboards in older admin panels). Angular is used in modern SPAs like Google Ads, Gmail, Netflix dashboards, etc.
A shared CartService is injected into header and product pages so both see the same cart count.
Angular Angular Tutorial · Angular
Short answer: ng serve builds and launches a development server that hosts your app locally. It watches for file changes and automatically reloads the app (live-reload). Useful during development for rapid testing. ng serve
ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for product edit.
Angular Angular Tutorial · Angular
Short answer: SSR means rendering the app’s HTML on the server before sending it to the client. With Angular Universal, the app runs on Node.js server rendering Angular components into HTML. The client then takes over via Angular’s client-side rendering (hydration).
ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for product edit.
Angular Angular Tutorial · Angular
Short answer: ngular? ng serve builds and launches a development server that hosts your app locally. It watches for file changes and automatically reloads the app (live-reload). Useful during development for rapid testing. ng serve
ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for product edit.
Angular Angular Tutorial · Angular
Short answer: @NgModule is a decorator that defines a module. It declares which components, directives, and pipes belong to the module. It imports other modules needed for its components. It exports components/modules to make them available elsewhere. It configures services/providers scoped to the module.
@NgModule({ declarations: [MyComponent, MyDirective], imports: [CommonModule], exports: [MyComponent] }) export class MyModule {}
ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for product edit.
Angular Angular Tutorial · Angular
Short answer: Change Detection Strategy Description When to Use Default Angular checks every component in the component tree every cycle Simple apps or components with frequent changes OnPush Angular checks component only if input references change or events Optimizes performance, suitable for immutable data & smart components How to set OnPush: @Component({ selector: 'app-example', changeDetection:…
ChangeDetectionStrategy.OnPush, template: `...` }) export class ExampleComponent {} Key Difference: Default: Runs change detection every time. OnPush: Runs only when inputs change by reference or manual trigger.
A shared CartService is injected into header and product pages so both see the same cart count.
Angular Angular Tutorial · Angular
Short answer: The Angular compiler converts Angular templates and TypeScript code into efficient JavaScript code. There are two modes: JIT (Just-in-Time): Compilation happens in the browser at runtime. AOT (Ahead-of-Time): Compilation happens during the build phase, producing optimized JS files. It processes: Templates → render functions Metadata → static code to improve runtime Ivy compiler is the latest Angular compiler.
ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for product edit.
Angular Angular Tutorial · Angular
Short answer: TestBed is the primary API to configure and initialize the environment for unit testing Angular components and services. It allows you to declare components, provide services, import modules, and compile templates.
ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for product edit.
Angular Angular Tutorial · Angular
Short answer: trackBy is a function used with *ngFor to tell Angular how to track list items uniquely. Why it matters: Without trackBy, Angular recreates DOM elements on each update, causing performance overhead. ✅
<div *ngFor="let item of items; trackBy: trackById"> {{ item.name }} </div> trackById(index: number, item: any) { return item.id; // unique id per item } Angular reuses existing DOM elements instead of recreating them.
ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for product edit.
Angular Angular Tutorial · Angular
Short answer: Lazy loading loads feature modules only when needed (e.g., when a user navigates to a route). Benefits: Reduces initial bundle size → faster app startup. Improves performance and user experience. Enables better code splitting and modularity. Angular supports lazy loading via dynamic route configuration: { path: 'products', loadChildren: () => import('./products/products.module').then(m => m.ProductsModule) }
Angular Angular Tutorial · Angular
Short answer: JWT is a compact, URL-safe token format that securely transmits information between parties. Contains a payload with user info and claims, digitally signed. Angular apps use JWT to: Store authentication state. Send it with API requests to authorize access. Decode JWT to get user roles, expiry, etc.
ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for product edit.
Angular Angular Tutorial · Angular
Short answer: Comman Purpose ng serve Builds app in memory, runs a dev server, watches files, reloads on changes (for development) ng build Builds app to disk, generates production or development-ready output files
A shared CartService is injected into header and product pages so both see the same cart count.
Angular Angular Tutorial · Angular
Short answer: CommonModule provides common directives like *ngIf, *ngFor, ngClass, etc. You import it in feature modules or any module other than the root module. Don’t import BrowserModule in feature modules; instead, import CommonModule there.
ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for product edit.
Angular Angular Tutorial · Angular
Short answer: ngular reuses existing DOM elements instead of recreating them.
ShopNest admin can be built in Angular with modules/components, services for API calls, and reactive forms for product edit.
Agile & Scrum Developer Essentials · Agile
Short answer: Definition: A Burndown Chart is a visual tool that shows the remaining work in a Sprint or project over time. Purpose: Helps teams monitor progress toward completing the Sprint backlog. Enables early identification of scope creep or falling behind. Follow On: How to use: X-axis: Days in Sprint Y-axis: Remaining effort (usually in story points or hours) Ideal line vs. actual line
Midway through a Sprint, a team sees the burndown flatlining (no work is getting “done”). This prompts a conversation — they discover a blocker in API access and address it before the Sprint is derailed. Scrum Implementation & Best Practices:
Agile for ShopNest means ship a thin checkout slice every sprint, get feedback, then improve—not a 6-month big-bang release.