How to pass parameteres to modal?
<p>That's the way I use the ng2-bootstrap modal:</p>

<pre><code>import {Component} from '@angular/core';
import {NgbModal} from '@ng-bootstrap/ng-bootstrap';

@Component({
  selector: 'add-customer-modal',
  template: `
    &lt;template #test let-c="close" let-d="dismiss"&gt;
      &lt;div class="modal-header"&gt;
        &lt;button type="button" class="close" aria-label="Close" (click)="d('Cross click')"&gt;
          &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;
        &lt;/button&gt;
        &lt;h4 class="modal-title"&gt;Modal title&lt;/h4&gt;
      &lt;/div&gt;
      &lt;div class="modal-body"&gt;
      &lt;/div&gt;
      &lt;div class="modal-footer"&gt;
        &lt;button type="button" class="btn btn-secondary" (click)="c('Close click')"&gt;Close&lt;/button&gt;
      &lt;/div&gt;
    &lt;/template&gt;
    &lt;button type="button" class="btn btn-primary btn-sm" (click)="open(test)"&gt;&lt;i class="fa fa-plus"&gt;&lt;/i&gt; &lt;i class="fa fa-user-o"&gt;&lt;/i&gt;&lt;/button&gt;
  `
})
export class AddCustomerModal {

  constructor(private modalService: NgbModal) {}

  open(content) {
    this.modalService.open(content, { size: 'lg' }).result.then((result) =&gt; {
      console.log(result);
    }, (reason) =&gt; {
      console.log(reason);
    });
  }
}
</code></pre>

<p>I'am a little bit confused, because I thought the content is used to pass parameters to the modal. But in my opinion it's only the name the open method needs to find the correct template?</p>

<p>So how can I pass parameters?</p>