29 October 2020

#Angular

#Angular

Key Concepts


S.No Topic Sub-Topics
1Introduction to AngularWhat is Angular, Features, Advantages, Angular vs AngularJS, Use cases
2Angular ArchitectureModules, Components, Templates, Services, Dependency Injection, Directives
3Setting up AngularNode.js installation, Angular CLI, Creating new project, Project structure, Running app
4TypeScript BasicsVariables, Types, Functions, Classes, Interfaces, Decorators
5ComponentsCreating component, Component decorator, Template, Styles, Lifecycle hooks
6Templates & Data BindingInterpolation, Property binding, Event binding, Two-way binding, Template reference variables
7DirectivesStructural directives, Attribute directives, ngIf, ngFor, Custom directives
8PipesBuilt-in pipes, Custom pipes, Chaining pipes, Async pipe, Date and number formatting
9Services & Dependency InjectionCreating service, Injectable decorator, Singleton service, Using service in component, Hierarchical injection
10Routing & NavigationRouterModule, Routes configuration, RouterLink, Route parameters, Lazy loading
11Forms in AngularTemplate-driven forms, Reactive forms, FormControl, FormGroup, Validators
12HTTP ClientHttpClientModule, GET request, POST request, Handling errors, Interceptors
13Observables & RxJSObservable creation, Subscribing, Operators, Subjects, Async data handling
14Routing GuardsCanActivate, CanDeactivate, CanLoad, AuthGuard example, Route protection
15Angular ModulesNgModule, Feature modules, Shared modules, Core module, Lazy-loaded modules
16Angular CLI Commandsng generate, ng serve, ng build, ng test, ng lint
17Angular AnimationsTrigger, State, Transition, Animate, Keyframes
18Angular MaterialInstalling Angular Material, Material components, Theming, Buttons & icons, Responsive layout
19Unit TestingKarma, Jasmine, TestBed, Component testing, Service testing
20End-to-End TestingProtractor, Cypress, Writing e2e tests, Running tests, Best practices
21Change DetectionZones, Default strategy, OnPush strategy, DetectChanges, MarkForCheck
22Angular Lifecycle HooksngOnInit, ngOnChanges, ngDoCheck, ngAfterViewInit, ngOnDestroy
23Angular SecuritySanitization, XSS prevention, Content Security Policy, Authentication, Authorization
24State ManagementServices for state, RxJS BehaviorSubject, NgRx overview, Actions & Reducers, Store usage
25Lazy Loading & PreloadingLazy-loaded modules, PreloadAllModules, Route configuration, Performance benefits, Example setup
26Angular InterceptorsHttpInterceptor, Logging requests, Adding headers, Error handling, Token authentication
27Custom Structural & Attribute DirectivesCreating directive, HostListener, HostBinding, Manipulating DOM, Examples
28Angular Internationalization (i18n)i18n setup, Translating text, Dynamic locale, Date & number formatting, Building for multiple languages
29Performance OptimizationChangeDetectionStrategy, Lazy loading, TrackBy in ngFor, OnPush strategy, Ahead-of-Time compilation
30Hands-on ProjectCreate Angular app, Use routing, Forms & HTTP, Services & DI, Deploy and optimize

Interview question

Basic Level

  1. What is Angular and why is it used?
  2. Difference between Angular and AngularJS.
  3. Features of Angular.
  4. Advantages of using Angular.
  5. What is TypeScript and why Angular uses it?
  6. What is Angular CLI?
  7. How to create a new Angular project using CLI?
  8. What is a component in Angular?
  9. Explain the structure of an Angular project.
  10. What are templates in Angular?
  11. What is data binding in Angular?
  12. Types of data binding in Angular.
  13. What is interpolation?
  14. What is property binding?
  15. What is event binding?
  16. What is two-way binding?
  17. What are directives in Angular?
  18. Types of directives in Angular.
  19. What is a pipe in Angular?
  20. Built-in pipes in Angular.
  21. How to create a custom pipe?
  22. What are modules in Angular?
  23. What is NgModule?
  24. What is dependency injection in Angular?
  25. What are services in Angular?

Intermediate Level

  1. What are Angular lifecycle hooks?
  2. Explain ngOnInit, ngOnChanges, ngOnDestroy.
  3. What is the difference between structural and attribute directives?
  4. What is the difference between *ngIf and [hidden]?
  5. Explain ngFor and trackBy.
  6. What is Angular routing?
  7. How to configure routes in Angular?
  8. How to pass route parameters?
  9. What are route guards?
  10. Types of route guards.
  11. What is lazy loading in Angular?
  12. What is preloading in Angular?
  13. How to handle forms in Angular?
  14. Difference between template-driven and reactive forms.
  15. Explain FormControl, FormGroup, and FormArray.
  16. How to implement form validation?
  17. Built-in validators in Angular.
  18. How to create custom validators?
  19. How to make HTTP requests in Angular?
  20. What is HttpClientModule?
  21. How to handle HTTP errors?
  22. How to use interceptors in Angular?
  23. What are observables in Angular?
  24. How to use RxJS operators?
  25. Difference between promises and observables.

Advanced Level

  1. What is Angular change detection?
  2. How does Angular detect changes in components?
  3. What is ChangeDetectionStrategy.OnPush?
  4. What is a zone in Angular?
  5. Difference between default and OnPush change detection.
  6. What are Angular animations?
  7. How to implement animations using Angular?
  8. What is Angular Material?
  9. How to use Angular Material components?
  10. How to implement responsive design in Angular?
  11. What is Ahead-of-Time (AOT) compilation?
  12. What is Just-in-Time (JIT) compilation?
  13. Difference between AOT and JIT.
  14. How to optimize Angular performance?
  15. What is a singleton service?
  16. How to provide services in root vs component?
  17. What is Angular injector hierarchy?
  18. How to use HostBinding and HostListener?
  19. How to create custom structural directives?
  20. How to create custom attribute directives?
  21. How to handle i18n (internationalization) in Angular?
  22. How to use Angular pipes for i18n?
  23. What are dynamic components?
  24. How to create dynamic components using ComponentFactoryResolver?
  25. How to handle file uploads in Angular?

Expert Level

  1. How to implement state management in Angular?
  2. What is NgRx and why use it?
  3. How to implement actions, reducers, and selectors in NgRx?
  4. How to use BehaviorSubject for state management?
  5. How to implement server-side rendering with Angular Universal?
  6. How to integrate Angular with a REST API backend?
  7. How to secure Angular applications?
  8. How to implement authentication and authorization in Angular?
  9. How to implement JWT token authentication in Angular?
  10. How to integrate Angular with OAuth2/OpenID Connect?
  11. How to implement route-based lazy loading for modules?
  12. How to handle caching strategies in Angular?
  13. How to implement service workers and PWA with Angular?
  14. How to test Angular applications using Jasmine?
  15. How to write unit tests for components, services, and pipes?
  16. How to write end-to-end tests using Protractor or Cypress?
  17. How to optimize Angular bundle size?
  18. How to implement code splitting in Angular?
  19. How to integrate Angular with CI/CD pipelines?
  20. How to deploy Angular applications to production?
  21. How to handle memory leaks in Angular applications?
  22. How to debug Angular performance issues?
  23. How to monitor Angular applications in production?
  24. Best practices for Angular application architecture.
  25. Best practices for Angular security and performance.

Related Topics