angular - How to implement ng2-dragula and firebase with sort -
i trying show names have tables numbers , sorted tablenumber.
my data looks like:
and code is:
@component({ selector: 'dropanddrag', template: ` <ul> <li *ngfor="let item of (items|async)" [dragula]='"bag-one"' [dragulamodel]='(items|async)'></li> </ul> ` }) export class sorttablecomponent { items: any; constructor(public service: smarttablesservice) { this.items=this.service.getdata(); } }
the problem how can group table number , show, this.items array of objects, template ng should changed name property item.name .
Comments
Post a Comment