Skip to content

Files

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

angular2 interview questions

expert

you just built hello world in angular2+ and may be you followed some video or blog and now you are brave enough to tell the interviewer that you know little bit angular2.

Expect the following questions

  1. what is factory Component
  2. What is lazy loading
  3. what is AOT
  4. What are some of the Angular Style Guide suggestions you follow on your code? Why?

Animation

  1. what is wildcard state?
  2. How do you put animation between two states?
  3. How will you do lazy loading in angular application
  4. What would be a good use for NgZone service?
  5. How would you protect a component being activated through the router?
  6. How would you insert an embedded view from a prepared TemplateRef?

How

  1. How will you http interceptor

  2. How you parallelize multiple observable call

  3. how will you put one async call before another

  4. What tools would you use to find a performance issue in your code?

  5. What are some ways you may improve your website's scrolling performance?

  6. Explain the difference between layout, painting and compositing.

  7. When does a lazy loaded module is loaded?

  8. How do you identify a structural directive in html?

  9. How would you create a component to display error messages throughout your application?

  10. How would you implement a multiple api calls that needs to happen in order using rxjs?

  11. How would you make sure an api call that needs to be called only once but with multiple conditions. Example: if you need to get some data in multiple routes but, once you get it, you can reuse it in the routes that needs it, therefor no need to make another call to your backend apis.

  12. If you need to respond to two different Observable/Subject with one callback function, how would you do it?(ex: if you need to change the url through route parameters and with prev/next buttons).

Answers link coming soon