Intermediate Level Angular Interview Questions

3 min readMar 1, 2021


Sam Dune Jaiselmer India


  1. What is the difference between directive and the component?
  2. Difference between ngOnChanges and ngDoCheck?
  3. How to send data from child to parent?
  4. What is Change detection and type of change detection?
  5. What is view encapsulation?
  6. What is Shadow dom?
  7. What is EventEmitter? Can we use it in service if yes then how to tell the use case?


  1. Can we put maths expressions in interpolation?
  2. What is event binding?
  3. What is the difference between impure and pure pipe?
  4. Can we apply pipe in ngFor ? How to get the length of the filtered result?
  5. Make a groupby pipe?
  6. What is property binding?
  7. What is attribute binding?
  8. What is a template reference variable? What are all the use cases?


  1. What are types of directives available ?
  2. Why * (start) asterisk before ngFor ?
  3. Can we use ngFor and ngIf on the same element?
  4. Write syntax for custom directive ?
  5. Difference between Attribute and structure directive?
  6. What is ng template , ng container?
  7. Where to use ngSwitch syntax ?

Dependency Injection

  1. What is Injectable?
  2. What is provided in types (root etc)?
  3. Difference between public and private service injection?
  4. What is a provider?
  5. How to create multiple instances of a service (sandboxing)?

Routing & Navigation

  1. What is codespliting?
  2. What is lazy loading ?
  3. How to get current route information?
  4. What is a wildcard route?
  5. How set display a 404 page?
  6. How to do nesting routing?
  7. What is the relative path?
  8. Difference between query param and parm?
  9. What is a route guard? Use of canactivate?
  10. Difference location strategies ?
  11. What activate route and snapshot route?
  12. Difference between for root and for child ?


  1. Difference between Reactive form and template driven form?
  2. What is a control value accessor?
  3. What is the use of a formArray ?
  4. What is the use of formGroup?
  5. In which form reactive or template driven form model is implicit?
  6. How does data flow in both forms?
  7. What is mutability of data model?
  8. What is form validation? How to define custom validation on both forms?
  9. How to put validation error in template driven form?
  10. Difference between sync and async validator function?
  11. What is abstract control?
  12. How to put a validation class on the form element?
  13. Difference between set and patch value?

HTTP Client

  1. What is an http interceptor?
  2. What are different options in request ?
  3. What are different response type?
  4. How to cancel any request?
  5. How to handle multiple request hit one after another any once can come first or second etc?
  6. What is JSONP?
  7. How to read non json data?
  8. How to handle errors?
  9. How to retry a failed request?


  1. What is code coverage? How to check it?
  2. How to test services with multiple dependencies ?
  3. What is spy object?
  4. What is testbed ?
  5. What is a component fixture?
  6. How to do query in html dom in testing?
  7. What is the use of detectChanges?
  8. How to test async service?
  9. How to test input and output ?
  10. How to test routing?
  11. How to test pipes?

Internationalization (i18n)

  1. How to provide the translation files?
  2. How to localize currency ?
  3. How to localize time?


  1. What is multiple transition state?
  2. How to animate entering and leaving view?
  3. What is complex animation sequence ?
  4. What is stagger group and sequence?


  1. How to generate module with routing using cli
  2. How to create component without spec file?

PWA and Service worker

  1. What is PWA Progressive web app ?
  2. What is service work?
  3. Is Server Side render support service worker?
  4. How make app aware new version is available?


  1. Explain the operator catchError,retry?
  2. What is Of and from operator?
  3. Explain switchmap?
  4. Define Subject and its types with difference?
  5. Difference between hot and cold observable?
  6. Define unicasting and multicasting?
  7. After an observable error will it get new value?


  1. How to keep your app secure?
  2. How to bypass angular security?

Performance and optimization

  1. How you optimize your app?
  2. Difference between defer and async?
  3. What is CDN?
  4. How to make components lighter?
  5. How many ngmodel we can put in single page?
  6. What is tree shaking?




Software Engineer| Angular Advocate | Cyclist