I want to show different values from JSON data depending on a drop down selection inside a table using angular 2.
<div>
<label for="input-one">select</label>
</div>
<div>
<select>
<option value="">--- Select ---</option>
<option value="ABC">ABC</option>
<option value="def">def</option>
</select>
</div>
For example:
If you select ABC, it should show values matching ABC from JSON data in the table. If you select def, it should show values from matching from JSON data in the table.
I want to do this in Angular 2. Please suggest me what could be the solution.