Angular is based on a compiler, that takes your modules, components, directives, pipes and templates and weaves them together. In Angular 4 we completely redid the kind of code that we generate to drastically reduce the generated code size, while keeping our great performance numbers.
This talk explains the new API that we use as code generation target, how it fits into the Angular Compiler Architecture, the potential new use cases it allows, and what we did to make it fast.