Expert level Angular Interview Questions Part -2

HTTP Client

  1. How to consume an JSON REST api (server)?
  2. Which service is used for hitting an api?
  3. Differentiate between get and post?
  4. What is a header?
  5. In Auth 2 how to manage token expire scenario by renew it using refresh token without impact of user experience?
  6. Where do we put http params in the request ?
  7. What are different type of response type available in angular?
  8. What is role of observe in request ?
  9. How get upload progress of file request ?
  10. How t request a typed response?
  11. How to read the full response?
  12. How to make and consume a jsonp request?
  13. How to request non json data ? like download a file.
  14. Write code for interceptor ? also where do we need it to inject?
  15. In provider array we use multi true what it does ?
  16. How can we apply caching in request?
  17. How to apply debouncing in request?
  18. How you can secure the requests?
  19. How to handle more than one request suppose need to get path of 100 of images in an array ?


  1. Write the code for testing a service ?
  2. Why we need before each?
  3. Difference between equal to and tobe()?
  4. Why we need fake service?
  5. Testing without before each ?
  6. How to test http service?
  7. What is needed for component dom test?
  8. Use of by.css
  9. What is the debug element?
  10. How to test attribute directive?
  11. Explain tick , discard periodic task , component fixture auto detect?
  12. Explain compilecomponent?
  13. How replace meta data ?
  14. How to reset the test environment?
  15. Please enlist the component fixture methods?
  16. What is isStable ?
  17. What is listener in testing?
  18. What is By.directive ?

Internationalization (i18n)

  1. How to change the currency according to timezone?
  2. Name the local package?
  3. How to support the translation?
  4. In which file we put localize configuration ?


  1. Enlist the some animation functions we import from modules?
  2. Write and animation code ?
  3. Explain delay and easing?
  4. What is trigger in animation Where we put the trigger?
  5. What is use of animateChild ?
  6. How to create reusable animation?
  7. How to add animation in route transition?
  8. How to add animation in ngFor for element for leaving and entering?


  1. How to make custom schematics?
  2. How to add any third party library?
  3. How to update the angular apps?
  4. What is an angular dev kit ?
  5. Can we run angular app without ng serve?

PWA and Service worker

  1. How to support PWA in angular?
  2. What are the benefits of service worker?
  3. Which file contain service worker configuration?
  4. What is app shell?


  1. Difference between Observable and Promise ?
  2. What is next , error complete?
  3. Difference between of and from ?
  4. How to convert promise to Observable and vice-versa?
  5. How to create observable?
  6. List the operators ?
  7. Explain the combineLatest, concat , zip, takeuntil debounceTime, DistinctUntil change, switchmap buffertime, tap and share?
  8. Can we replace interval with observable if yes then how?
  9. Make an observable from keystrokes ?


  1. How to prevent cross site scripting?
  2. How to trust safe values?
  3. What is CSP Content security policy?
  4. What are all possible vulnerabilities ?
  5. How we can audit an angular app?



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store