In the documentation, the open and close Methods are wrongly defined following is the correct usage of these methods (click)="modal.open('my-modal')" // to open the modal <sj-modal id="my-modal"> <div> HI </div> <button (click)="modal.close('my-modal')">Close </button> // to close the modal </sj-modal>