Fichier

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

Index

Propriétés
Méthodes

Méthodes

close
close(work: (toto: string) => void)
Paramètres :
Nom Type Optionnel
work function Non
Renvoie : string

Another string

open
open(val: string)
Example :
FooService.open('yala');
Paramètres :
Nom Type Optionnel Description
val string Non

The entry value

Renvoie : string

The string

Propriétés

bar
Type : string[]
Valeur par défaut : []
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';
    }
}

résultats matchant ""

    Aucun résultat matchant ""