angular - How to implement ng2-dragula and firebase with sort -


i trying show names have tables numbers , sorted tablenumber.

my data looks like:

enter image description here

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

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -