test/fixtures/sample-files/foo.service.ts
Properties |
Methods |
| close | ||||||
close(work: (toto: string) => void)
|
||||||
|
Defined in test/fixtures/sample-files/foo.service.ts:23
|
||||||
|
Parameters :
Returns :
string
Another string |
| open | ||||||||
open(val: string)
|
||||||||
|
Defined in test/fixtures/sample-files/foo.service.ts:15
|
||||||||
|
Example :
Parameters :
Returns :
string
The string |
| bar |
Type : string[]
|
Default value : []
|
|
Defined in test/fixtures/sample-files/foo.service.ts:7
|
| ex |
Type : any
|
|
Defined in test/fixtures/sample-files/foo.service.ts:5
|
import { Injectable } from '@angular/core';
@Injectable()
export class FooService {
ex: any;
bar: string[] = [];
/**
* @param {string} val The entry value
* @returns {string} The string
* @example
* FooService.open('yala');
*/
open(val: string): string {
return 'test';
}
/**
* @param {string} val The entry value
* @return {string} Another string
*/
close(work: (toto: string) => void): string {
return 'test';
}
}