Both ViewChild and ContentChild are used to perform component communication in AngularJS. The parent components use ViewChild or ContentChild to access child components. Template’s part of directive, element or component is referred to ViewChild, whereas element or component projected in the template us referred as ContentChild.

BY Best Interview Question ON 30 Apr 2020