Select default option value from typescript angular 6

前端 未结 14 1646
轻奢々
轻奢々 2020-12-09 07:30

I have a select html like this:


    
    
    

App.component.ts

import { Component } from '@angular/core'; 
@Component({ 
    selector: 'my-app', 
    templateUrl: './app.component.html', 
    styleUrls: [ './app.component.css' ] 
}) 

export class AppComponent { 
    nrSelect:string = "47" 
}

提交回复
热议问题