Bootstrap radio button “checked” flag

前端 未结 5 1649
一整个雨季
一整个雨季 2020-12-13 03:59

In case #1 works, in case #2 it do not works. Check the code bellow:

Radio Gr

5条回答
  •  孤街浪徒
    2020-12-13 04:41

    In case you want to use bootstrap radio to check one of them depends on the result of your checked var in the .ts file.

    component.html

    Radio Group #1

    component.ts file

    @Component({
      selector: '',
      templateUrl: './.component.html',
      styleUrls: ['./.component.css']
    })
    export class radioComponent implements OnInit {
      checked = true;
    }
    

提交回复
热议问题