How to get list of values which are selected in radio button after click on submit in Angular js
Here is the HTML, this file is partial where global controller is defined in home page:message object contains data which is loaded from first page . <ng-repeat data in message> <input type="radio" ng-model="accountValue" value="{{data}}" name="select" /> {{data.Type}} {{data.Number}} Continue JS: myApp.controller('myCtrl',['$scope',function ($scope) { $scope.selectAccount = function(id) { alert(id); } }]); I am getting id as undefined . Please help. thanks So as per the comments what you exactly need is to share the data between two controllers (i.e Global and myCtrl ) on onclick of continue