angularjs – 未知的提供者:groupByFilterProvider < - groupByFilter

我有一个对象数组.我需要将数据分组一个字段,并将结果显示HTML表中.

输入:

[
    {
        id: "559e2bbc9a496034557d6d84",text: "Data Sources",topParentId: "559e2bbc9a496034557d6d84",topParentText: "Data Sources"
    },{
        id: "559e2bbc9a496034557d6d83",text: "Applications",topParentId: "559e2bbc9a496034557d6d83",topParentText: "Applications"
    },{
        id: "559e2bbc9a496034557d6d82",text: "Analytics",topParentText: "Applications"
    }
]

从这里我需要创建一个这样的HTML表(由topParentId分组数据):

Group            |       Tags
Data Sources     |      Data Sources
Applications     |      Applications   Analytics

到目前为止我已经做到了:

<table class="table table-bordered">
              <thead>
              <tr>
                <th>Group</th>
                <th>Tags</th>
              </tr >
              </thead>
              <tbody>
              <tr ng-repeat="tag in topic.tags | groupBy: 'topParentId'">
                <td>{{tag.topParentText}}</td>
              </tr>
              <tr>
                <td>{{tag.text}}</td>
              </tr>
              </tbody>
            </table>

但运行此代码后,我将收到UnkNown提供程序:groupByFilterProvider< - groupByFilter错误. 我使用AngularJs 1.2

由@jhadesdev orderBy提供的是开箱即​​用,但不是groupBy.
包含在 angular-filter

相关文章

ANGULAR.JS:NG-SELECTANDNG-OPTIONSPS:其实看英文文档比看中...
AngularJS中使用Chart.js制折线图与饼图实例  Chart.js 是...
IE浏览器兼容性后续前言 继续尝试解决IE浏览器兼容性问题,...
Angular实现下拉菜单多选写这篇文章时,引用文章地址如下:h...
在AngularJS应用中集成科大讯飞语音输入功能前言 根据项目...
Angular数据更新不及时问题探讨前言 在修复控制角标正确变...