Reena Lakra

Reena Lakra

  • NA
  • 146
  • 56k

How to open or close mat-select programmatically?

May 28 2018 3:57 AM
I want to open or close mat-select programmatically, i.e.
Here, is my code, now, I want to control open or closed list from the component.
  1. <mat-select placeholder="*Cities"  
  2.                   name="fromCity"  
  3.                   [(ngModel)]="studentModel.City"  
  4.                   (click)="openDialog()"  
  5.                   required>  

Answers (2)