Some basic questions going from easy to difficult. A more exhaustive list of more questions from the community can be found here.
- Whats the difference between components and directives? [ANSWER]: Components are widgets while directives more like decorators for elements and/or components.
- How do you get a reference to a child component? [ANSWER]:
ViewChild
/ViewChildren
orContentChild
/ContentChildren
- What is the difference between
ViewChild
andContentChild
? - Whats the difference between
NgModules
and ES2015 Modules? - How do you lazy load components and why is lazy loading important?
- Explain Observables and why they are useful.