Due to a mix of code in the components ad the templates, integrating them needs a compiler. Hence, in Angular 6, a compiler is used.

BY Best Interview Question ON 04 Feb 2020