为什么没有在 ns-popover 弹出窗口中选择收音机。仅在 table 最后一列弹出窗口中选择了收音机

Why radio not selected in ns-popover popup. Radio is only seleced in table last column popup

我正在 angular 控制器中设置无线电模型,但它仅在 table 的最后一列弹出窗口中设置。

ns-popover 出现在 table 栏点击。

Angular代码

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

app.controller('MainController', function ($q, $timeout) {
this.foo = "foobar!";

this.fields = [
    {id: 1, name: 'A'},
  {id: 2, name: 'B'},
  {id: 3, name: 'C'}
];

this.columns = [
    {
    id: 1,
    entries: [
        {columnType: 'a'},
      {columnType: 'b'},
      {columnType: 'c'}
    ]   
  },
  {
    id: 2,
    entries: [
        {columnType: 'a'},
      {columnType: 'b'},
      {columnType: 'c'}
    ]
  },
  {
    id: 3,
    entries: [
        {columnType: 'a'},
      {columnType: 'b'},
      {columnType: 'c'}
    ]
  }
];

    $('#example').popover();
});

示例在这里 jsfiddle popup example

您缺少设置当前活动索引updated fiddle link

$scope.setIndex = function(index) {

    this.currentIndex = index;
};
this.currentIndex = -1;