valor-software/ng2-bootstrap

View on GitHub
scripts/docs/api-doc-test-cases/services-with-methods.ts

Summary

Maintainability
A
0 mins
Test Coverage
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;
  }
}