S
S
semexion2019-05-12 19:08:49
Angular
semexion, 2019-05-12 19:08:49

How to get the value of the selected radio into a component variable?

Actually the question is how to get the value of the selected radio into the component variable?

<div class="row">
      <div class="btn-group btn-group-toggle mx-auto" data-toggle="buttons">
        <label class="btn" *ngFor="let item of good.price_typeing; let idx = index" [class.active]="idx === 0">
          <input type="radio" name="property" [value]="item.property" [checked]="idx === 0">
          {{item.property}}
        </label>
      </div>
    </div>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question