title: Open ng-bootstrap modal programmatically
body: <p>I've got an angular 4 page including a ng-bootstrap modal. My code looks like this.</p>
  
  <p>foo.html</p>
  
  <pre><code>[...]
  &lt;button class="btn btn-sm btn-secondary material-icons"
  (click)="open(content)"&gt;search&lt;/button&gt;
  
  &lt;ng-template #content let-c="close" let-d="dismiss"&gt;
      content in here
  &lt;/ng-template&gt;
  [...]
  </code></pre>
  
  <p>foo.ts</p>
  
  <pre><code>[...]
  constructor(private modalService: NgbModal) { }
  [...]
  open(content) {
     let options: NgbModalOptions = {
       size: 'lg'
     };
  
     this.modalService.open(content, options);
  }
  [...]
  </code></pre>
  
  <p>Now when I click the button the modal opens. What I want to do now is open the model on ngChanges. </p>
  
  <pre><code>ngOnChanges(changes: any) {
     open(content)
  }
  </code></pre>
  
  <p>My problem is: How do I get the "content" here? Is there any way to get the ng-template programmatically? Thanks in advance!</p>