Skip to content

Commit

Permalink
fix(modal): TypeScript 1.8 compatibility
Browse files Browse the repository at this point in the history
Fixes #940

Closes #941
  • Loading branch information
pkozlowski-opensource committed Oct 23, 2016
1 parent eb777e7 commit e077ccc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modal/modal-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ export class NgbModalRef {
}
}

// only needed to keep TS1.8 compatibility
set componentInstance(instance: any) {}

/**
* A promise that is resolved when a modal is closed and rejected when a modal is dismissed.
*/
Expand Down

0 comments on commit e077ccc

Please sign in to comment.