File

test/fixtures/sample-files/foo.service.ts

Index

Properties
Methods

Methods

close
close(work: (toto: string) => void)
Parameters :
Name Type Optional
work function No
Returns : string

Another string

open
open(val: string)
Example :
FooService.open('yala');
Parameters :
Name Type Optional Description
val string No

The entry value

Returns : string

The string

Properties

bar
Type : string[]
Default value : []
ex
Type : any
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';
    }
}

results matching ""

    No results matching ""