foo.service.ts 508 B

1234567891011121314151617181920212223242526
  1. import { Injectable } from '@angular/core';
  2. @Injectable()
  3. export class FooService {
  4. ex: any;
  5. bar: string[] = [];
  6. /**
  7. * @param {string} val The entry value
  8. * @returns {string} The string
  9. * @example
  10. * FooService.open('yala');
  11. */
  12. open(val: string): string {
  13. return 'test';
  14. }
  15. /**
  16. * @param {string} val The entry value
  17. * @return {string} Another string
  18. */
  19. close(work: (toto: string) => void): string {
  20. return 'test';
  21. }
  22. }