Recompiles Angular code when template is re-rendered