ng2-bootstrap-base-modified
Version:
Native Angular Bootstrap Components Typeahead modified
23 lines (19 loc) • 396 B
text/typescript
import {Injectable, TemplateRef} from '@angular/core';
/**
* A service to open modals
*/
@Injectable()
export class ModalService {
/**
* A method to open a modal
*/
open(content: string | TemplateRef<any>, options = {}): Promise<any> {
return Promise.resolve();
}
/**
* Checks if a modal is open
*/
isOpen(): boolean {
return false;
}
}