Specify @Input() parameter for Angular root component/module : <p>I have 3 root components that get bootstrapped by the root <code>AppModule</code>.</p>

<p>How do you go about specifying an <code>@Input()</code> parameter to one of those components?</p>

<p>Neither</p>

<pre><code>&lt;app-modal [id]="'hard-coded value'"&gt;&lt;/app-modal&gt;
&lt;app-modal [id]="constantExportedByAppmodule"&gt;&lt;/app-modal&gt;
</code></pre>

<p>are picked up by <code>AppModalComponent</code>:</p>

<pre><code>@Input() id: string;
</code></pre>

<p>It is undefined.</p>
