{"id":25774156,"url":"https://github.com/anilsingh581/angular-interview-questions-answers-examples","last_synced_at":"2026-06-17T10:31:58.107Z","repository":{"id":279398603,"uuid":"938677249","full_name":"anilsingh581/Angular-Interview-Questions-Answers-Examples","owner":"anilsingh581","description":"Angular Interview Questions and Answers with Examples","archived":false,"fork":false,"pushed_at":"2025-02-26T10:38:13.000Z","size":93,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T11:34:26.611Z","etag":null,"topics":["anguar","angular-cli","angular-interview-questions-answers","angular-material","angular20","books","bookstore"],"latest_commit_sha":null,"homepage":"https://www.code-sample.com/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anilsingh581.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-25T10:27:20.000Z","updated_at":"2025-02-26T10:42:15.000Z","dependencies_parsed_at":"2025-02-26T11:44:34.460Z","dependency_job_id":null,"html_url":"https://github.com/anilsingh581/Angular-Interview-Questions-Answers-Examples","commit_stats":null,"previous_names":["anilsingh581/angular-components-examples","anilsingh581/angular-interview-questions-answers","anilsingh581/angular-interview-questions-answers-examples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilsingh581%2FAngular-Interview-Questions-Answers-Examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilsingh581%2FAngular-Interview-Questions-Answers-Examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilsingh581%2FAngular-Interview-Questions-Answers-Examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilsingh581%2FAngular-Interview-Questions-Answers-Examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anilsingh581","download_url":"https://codeload.github.com/anilsingh581/Angular-Interview-Questions-Answers-Examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240981771,"owners_count":19888384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anguar","angular-cli","angular-interview-questions-answers","angular-material","angular20","books","bookstore"],"created_at":"2025-02-27T05:18:32.806Z","updated_at":"2026-06-15T11:32:12.834Z","avatar_url":"https://github.com/anilsingh581.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Interview Questions and Answers Examples\n\nA curated list of common Angular interview questions with concise answers and examples.\n\n# Table of Contents\n\n- [Chapter 1: The Basic Concepts of Angular](#chapter-1-the-basic-concepts-of-angular)\n- [Chapter 2: Concepts of Components](#chapter-2-concepts-of-components)\n- [Chapter 3: Concepts of Templates](#chapter-3-concepts-of-templates)\n- [Chapter 4: Concepts of Directives](#chapter-4-concepts-of-directives)\n- [Chapter 5: Concepts of Signals](#chapter-5-concepts-of-signals)\n- [Chapter 6: Concepts of Dependency Injection (DI)](#chapter-6-concepts-of-dependency-injection-di)\n- [Chapter 7: Concepts of Routing](#chapter-7-concepts-of-routing)\n- [Chapter 8: Concepts of Forms](#chapter-8-concepts-of-forms)\n- [Chapter 9: Concepts of HTTP Client](#chapter-9-concepts-of-http-client)\n- [Chapter 10: Concepts of SSR \u0026 Hybrid Rendering](#chapter-10-concepts-of-ssr--hybrid-rendering)\n- [Chapter 11: Concepts of Pipes](#chapter-11-concepts-of-pipes)\n- [Chapter 12: Concepts of NgModules](#chapter-12-concepts-of-ngmodules)\n- [Chapter 13: Concepts of Internationalization (i18n)](#chapter-13-concepts-of-internationalization-i18n)\n- [Chapter 14: Angular Security](#chapter-14-angular-security)\n- [Chapter 15: Concepts of RxJS with Angular](#chapter-15-concepts-of-rxjs-with-angular)\n- [Chapter 16: AI Experimental Features](#chapter-16-ai-experimental-features)\n- [Chapter 17: Compiler \u0026 Build Tools](#chapter-17-compiler--build-tools)\n- [Chapter 18: Developer Tools](#chapter-18-developer-tools)\n- [Chapter 19: Angular Best Practices](#chapter-19-angular-best-practices)\n- [Chapter 20: Angular Testing](#chapter-20-angular-testing)\n- [Chapter 21: Angular Material](#[chapter-21 Angular-material(https://github.com/anilsingh581/Angular-Interview-Questions-Answers-Examples/blob/main/Angular-Material-Example)])\n\n### 1. Core Concepts\n**Q: What is Angular and its key features?**  \nA: Angular is a TypeScript-based framework for building dynamic web apps. Key features: two-way data binding, dependency injection, and component-based architecture.\n\n---\n\n### 2. Components \u0026 Templates\n**Q: How do you create a component in Angular?**  \nA: Use `@Component` decorator with a selector, template, and styles. Example: `ng generate component my-component`.\n\n---\n\n### 3. Directives\n**Q: What are structural directives?**  \nA: Directives like `*ngIf` and `*ngFor` that modify DOM structure. Example: `\u003cdiv *ngIf=\"isVisible\"\u003eContent\u003c/div\u003e`.\n\n---\n\n### 4. Dependency Injection\n**Q: How does DI work in Angular?**  \nA: Angular’s injector provides services to components. Example: `constructor(private service: MyService) {}`.\n\n---\n\n### 5. Routing\n**Q: How do you configure a route in Angular?**  \nA: Define routes in `RouterModule` with `path` and `component`. Example: `{ path: 'home', component: HomeComponent }`.\n\n---\n\n### 6. Forms\n**Q: What’s the difference between template-driven and reactive forms?**  \nA: Template-driven uses directives in HTML; reactive uses FormGroup in TypeScript for more control.\n\n---\n\n### 7. HTTP Client\n**Q: How do you fetch data with HttpClient?**  \nA: Inject `HttpClient` and use `get()`. Example: `this.http.get('api/data').subscribe(data =\u003e console.log(data))`.\n\n---\n\n### 8. RxJS\n**Q: What are Observables in Angular?**  \nA: Streams of data handled asynchronously. Example: `interval(1000).subscribe(val =\u003e console.log(val))`.\n\n---\n\n### 9. Performance \u0026 Optimization\n**Q: How do you optimize Angular apps?**  \nA: Use lazy loading, OnPush change detection, and Ahead-of-Time (AOT) compilation.\n\n---\n\n### 10. Testing\n**Q: How do you write a unit test for a component?**  \nA: Use Jasmine/Karma. Example: `it('should render title', () =\u003e { expect(component.title).toBe('MyApp'); })`.\n## How to Run\n- Clone this repository:\n  ```bash\n  git clone [angular-interview-examples](https://github.com/anilsingh581/Angular-Components.git)\n  ```\n- Navigate into the folder:\n  ```bash\n  cd angular-interview-examples\n  ```\n- Install dependencies:\n  ```bash\n  npm install\n  ```\n- Run the Angular application:\n  ```bash\n  ng serve\n  ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanilsingh581%2Fangular-interview-questions-answers-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanilsingh581%2Fangular-interview-questions-answers-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanilsingh581%2Fangular-interview-questions-answers-examples/lists"}