I have the following select component that gets populated from a data coming from a rest api. How Can I set default selected value on md-select?
To set default value to md-select you need to set default value to the variable that you are using in [(ngModel)]. In your case:
Component Html =>
{{warehouse.description}}
Component Script =>
@Component({
selector: 'select-form-example',
templateUrl: './select-form-example.html',
})
constructor() {
this.selectedProductWarehouse.warehouse = "default value"
}