title: Can i use an @Input() in Angular with more types?
body: <p>I have a parent component that has to pass an object in @Input to the child component, but the object may not always be the same. For example, can i have:</p>
  <pre><code>@Input() obj: string | number;
  </code></pre>
  <p>?</p>
  <p>In my specific case i have two different objects as possibles inputs:</p>
  <pre><code>@Input() obj: AppDetail | AbsDetail;
  </code></pre>
  <p>Is it possible to do so?</p>