scripts/docs/api-doc-test-cases/services-with-methods.ts
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;
}
}