Radio buttons in ionic2

  1. How to call a function onClick of radioButton and select the radio button if condition id true

I see that ionSelect selects the radioButton and then calls the function. I want it to be the pther way around i.e call the function, check if a condition is true and then check the radio button.

I tried doing it with [checked] property but it does not seem to work.

  1. How do I apply a group to radio buttons when they are horizontally aligned. using list group breaks the formatting.


Can you post your full code?