component.html
<select #businesstype class="form-control" id="business_type" (change)="type(businesstype.value)"required [(ngModel)]="model.business_type" name="business_type" #Type="ngModel">
<option disabled>Select</option>
<option (click)="businesstype" *ngFor="let user of details" [value]="user.email">{{user.customer}}</option>
</select>
<ng-container *ngFor="let user of details">
<div class="col-sm-1" #type *ngIf="businesstype.value == user.email">{{user.id}}</div>
</ng-container>
一旦我选择了下拉选项,生成的电子邮件ID存储在businesstype.and ng容器中我使用相同的forloop获取id.but如何存储在引用变量中。