remove()

in app/src/app/pages/explore/explore.component.ts [162:171]


  remove(_id) {
    const document = _id && _id.$value;
    if (!document) { return; }

    this.mongoDb.remove(this.server, this.database, this.collection, document)
      .subscribe((res: any) => {
        const index = this.items.findIndex(v => v._id && v._id.$value && v._id.$value === document);
        this.items.splice(index, 1);
      });
  }