Z
Z
zachfischer2018-07-30 11:51:09
Angular
zachfischer, 2018-07-30 11:51:09

How to make post editing via modal window?

At the moment, I am editing a post on a page with a specific id. How can I make a modal open link with a selected post to edit.
Here are two codes that open a post for editing:

goToShow(contact: Contact): void {
    let contactLink = ['/contacts', contact.contact_id];
    this.router.navigate(contactLink);
  }

And opening a modal window:
onOpenModule() {
       return this.modal.open(ContactModalComponent,  overlayConfigFactory({}, BSModalContext))
  }

Is it possible to somehow combine the code so that the selected record for editing is in the open window.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question