ember cli group by:一个Ember.js帮助器用于按异步属性对对象进行分组 源码
ember-cli-group-by 计算属性和帮助程序的分组依据,它支持嵌套属性,例如,具有belongsTo关系的模型。 import Controller from '@ember/controller' ; import { groupByPath } from 'ember-cli-group-by/macros' ; export default Controller . extend ( { arrayGrouped : groupByPath ( 'array' , 'nested.property' ) , } ) ; {{ #each-in ( group-by-
下载地址
用户评论