Skip to content

Latest commit

 

History

History

intermediate

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Intermediate Level Angular Interview Questions

intermediate developer

you built angular2 you played with routing, https, different built process, unit test, etc. here are the questions you could expect

In the intermediate level you are very compfortable with angular2. Hence there is no what questions. Actually you know all of them by now. Hence there will be only how and why type questions

What category questions (just few bonus)

  1. What is the difference between RouterModule.forRoot() vs RouterModule.forChild()? Why is it important?
  2. What is the difference between an observable and a promise?
  3. What are some of the angular apis that are using observables?
  4. What is the difference between a module's forRoot() and forChild() methods and why do you need it?
  5. What is a structural directive?
  6. What pseudo-class selector targets styles in the element that hosts the component?
  7. What's the difference between dirty, touched, and pristine on a form element?
  8. What is a structural directive?
  9. What is an async pipe?
  10. What kind of data can be used with async pipe?
  11. What is the difference between ngOnInit() and constructor() of a component?
  12. When will ngOnInit be called?
  13. How would you make use of ngOnInit()?

How category questions

  1. How do components communicate with each other?
  2. How do you create two way data binding in Angular?
  3. What is the purpose of NgModule?
  4. How do you decide to create a new NgModule?
  5. How do you identify a structural directive in html?
  6. How would you select a custom component to style it.
  7. How would you select all the child components' elements?
  8. How would you make use of ngOnInit()?
  9. How would you cache an observable data?
  10. How will you inject header
  11. How would you create a custom pipe?
  12. How would you pass data from a parent component to a child component?
  13. How would you pass data from a child component to a parent component?
  14. How would you cache observable data?
  15. How do you mock a service to inject in a unit test?
  16. How do you mock a module in a unit test?

Why category questions

  1. Why angular2 uses decorator
  2. When will ngOnInit be called?
  3. Why do you need type definitions?
  4. Which components will be notified when an event is emitted?
  5. Why would you create shared module?
  6. What would you not put shared module?
  7. Why would you export from ngModule?
  8. Why is it bad if SharedModule provides a service to a lazy loaded module?
  9. What is the difference between an observable and a promise?
  10. Can you explain the difference between ActivatedRoute and RouterState?
  11. which service will you put in the module and why
  12. What is async validation and how is it done?

answers coming soon