如何在ng-container中使用引用变量?

时间:2018-04-26 10:49:39

标签: angular angular2-routing angular2-template angular2-forms angular2-directives

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如何存储在引用变量中。

0 个答案:

没有答案