title: ExpressionChangedAfterItHasBeenCheck Error in using Angular Component
body: <p>I have created a date-picker component in my Angular app. When i use it inside *ngIf, I got error ExpressionChangedAfterItHasBeenCheck.
  Let,I am using two component P and C.
  P as parent Input field.</p>
  
  <pre><code>&lt;INPUT [p]=" '' "&gt;
  </code></pre>
  
  <p>C as child drop-down appends after INPUT.</p>
  
  <pre><code>&lt;DIV&gt;
  // drop-down code
  &lt;/DIV&gt;
  </code></pre>
  
  <p>When P is created dynamically inside *ngIf, I got such error ExpressionChangedAfterItHasBeenCheck.</p>