JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="app">
  <div ng-controller="mainController as vm">
    <label ng-repeat="option in vm.options">
      <input type="radio" ng-change="vm.test()" ng-model="vm.selected" ng-value="option" />{{option}}
    </label>
  </div>
</div>

JavaScript

var appModule = angular.module('app', []);

appModule.controller('mainController', function($scope) {
  var vm = this;
  vm.selected = 'red';
  vm.options = ['red', 'blue', 'yellow', 'green'];
  vm.test = function() {
    alert('Changed');
  }
});