Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make comment multi line in TypeScript (Angular 2)

i have a problem to make comment multi line in typescript angular 2. I just want to comment this code :

    protected _checkingList(data, lists:Array<any>){
    let value = false;
    //if (data['__children'].length > 0){
    //    value = this.percobaanCentangMajuMundukCantik(data, data['__children'],data['__children'].length);
    //}
    if (data.value == true){
        value = true;
    }

    return value;
}

symbol "//" is the single comment in typescript, i want to make multiline comment, does anyone know how to make it ?

like image 723
Rachmat Chang Avatar asked Dec 18 '25 06:12

Rachmat Chang


1 Answers

The following is a multiline comment:

/* */

It uses the same commenting syntax as vanilla javascript.

like image 129
Andrew Eisenberg Avatar answered Dec 21 '25 04:12

Andrew Eisenberg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!