Hacker News new | ask | show | jobs
by mgechev 2181 days ago
The static HTML templates allow us to compile them to JavaScript instructions, similar to incremental DOM (iDOM).

This way Angular can perform an efficient change detection to reflect changes in the view.

Static versus dynamic has its own trade offs. It's well explored topic in theoretical computer science and popular literature. Static systems definitely can set some constraints, but at the same time open a lot of space for compile-time optimizations.