title: Angular 2 ng-bootstrap close Modal
body: <p>I am trying to close the modal that was presented to me through the open(content) function as shown in the example in the <a href="https://ng-bootstrap.github.io/#/components/modal" rel="noreferrer">Documentation</a> of ng-boostrap. In the website, it mentioned that i can call close or dismiss from NgbActiveModal. </p>
  
  <p>So I included NgbActiveModal in the component and tried to call dismiss() or close(). Both of them doesn't work. First of all, dismiss() is undefined (Am I importing NgbActiveModal wrong?) When I call close(), it seems to want to call some weird function inside lib.dom.d.ts which is not what I want at all. So to me it seems like I have no access to the close and dismiss provided by  ng-bootstrap even after I imported NgbActiveModal. Note that I can show the modal fine</p>
  
  <p>In the example, the modal was closed via (click)="c('Close click')". I have no idea where that comes from. </p>
  
  <p>So... How can I call the close() or dismiss() (Whichever works) to get rid of the modal</p>
  
  <p><a href="https://i.stack.imgur.com/rYiMc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rYiMc.png" alt="modal dismiss"></a></p>