Friday, 19 January 2018

Angular 2 Interview questions

Below are the list of Top 20 Angular2 interview questions and answers.
  1. What is angular2?
  2. List some advantages of Angular2 over Angular1?
  3. What are the new features of Angular2?
  4. How do you define the transition between two states in Angular?
  5. How to declare a component in Angular2?
  6. What is the difference between observable and promises?
  7. List the differences between Angular2 components vs. directives?
  8. What is ECMAScript?
  9. What is Traceur Compiler?
  10. List the modern browsers supported by Angular2?
  11. When to use Ngoninit and constructor in angular2?
  12. How to cache an observable data?
  13. List out the differences between ActivatedRoute and RouterState, with reference to angular2.
  14. What would you have in a shared module in Angular2?
  15. What do you mean by a structural directive in Angular2?
  16. What do you understand by a template variable? How is it used?
  17. Explain the concept of lazy loading in Angular2.
  18. What is the difference between constructor and ngOnlnit in Angular js?
  19. What is the meaning of component life cycle in Angular2?
  20. What is the use of ngForTrackBy directive?

3 comments: