
<code>ngDoCheck</code> in Angular 2</li>
<li>Changes to the model inside <code>$doCheck</code> will trigger new turns of the digest loop, which will cause the changes to be
propagated throughout the application.
Angular 2 does not allow the <code>ngDoCheck</code> hook to trigger a change outside of the component. It will either throw an
error or do nothing depending upon the state of <code>enableProdMode()</code>.</li>
</ul>
<h4 id="life-cycle-hook-examples">Life-cycle hook examples</h4>
<p>This example sh