Handling radio buttons with Angular 6
问题 I have a list of questions as given below. public questionList = [ { question:{ id: "Q1", query:"query 1" }, options:[ { id: "opt1", text: "Q1_opt1" }, { id: "opt2", text: "Q1_opt2" } ], selected:{ id:"", text:"" } }, { question:{ id: "Q2", query:"query 2" }, options:[ { id: "opt1", text: "Q2_opt1" }, { id: "opt2", text: "Q2_opt2" } ], selected:{ id:"", text:"" } } ]; My intention is to list the questions along with options as radio buttons. Whenever somebody selects an option, the id of the