Skip to content

Commit

Permalink
fix(modal): remove unnecessary Injectable annotation
Browse files Browse the repository at this point in the history
Fixes #1832

Closes #1833
  • Loading branch information
pkozlowski-opensource committed Sep 9, 2017
1 parent 799662c commit 0bf798d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/modal/modal-ref.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Injectable, ComponentRef} from '@angular/core';
import {ComponentRef} from '@angular/core';

import {NgbModalBackdrop} from './modal-backdrop';
import {NgbModalWindow} from './modal-window';
Expand All @@ -9,7 +9,6 @@ import {ContentRef} from '../util/popup';
* A reference to an active (currently opened) modal. Instances of this class
* can be injected into components passed as modal content.
*/
@Injectable()
export class NgbActiveModal {
/**
* Can be used to close a modal, passing an optional result.
Expand All @@ -25,7 +24,6 @@ export class NgbActiveModal {
/**
* A reference to a newly opened modal.
*/
@Injectable()
export class NgbModalRef {
private _resolve: (result?: any) => void;
private _reject: (reason?: any) => void;
Expand Down

0 comments on commit 0bf798d

Please sign in to comment.