Filling inputs based on selected option in AngularJS
<p>I've 3 input fields the first field is of type select and the remaining two are of type text. Now if I select a value from dropdown list, then the corresponding values should appear in the remaining two input fields. How to do it in AngularJS. Thank you!</p>

<p><strong>For example</strong> if I select User1 from the dropdown then User1 corresponding email &amp; phone number should appear in the corresponding input fields.</p>

<p><strong>NOTE: the values are fetched from the database based on the selected option</strong></p>

<pre><code>&lt;select&gt;
    &lt;option value="user1"&gt;User1&lt;/option&gt;
    &lt;option value="user2"&gt;User2&lt;/option&gt;
    &lt;option value="user3"&gt;User3&lt;/option&gt;
    &lt;option value="user4"&gt;User4&lt;/option&gt;
&lt;/select&gt;
&lt;input type="text" id="eamil" placeholder="Email"&gt;
&lt;input type="text" id="phone_no" placeholder="Phone number"&gt;
</code></pre>