How to set up this codepen example in ionic?

I’m a novice in ionic and I’m asking you how to make a proper controller? It seems that I don’t quite understand how it works.
I’ve tried to make some controller, but when I press a radio button “Two”, nothing happens.